def t1 = new Date() println t1 println t1.getDay()
Standard input is empty
Mon May 21 05:49:30 GMT 2012 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!