Return to Snippet

Revision: 10503
at January 2, 2009 11:32 by callmeblessed


Initial Code
def calendar = Calendar.instance;
calendar.with {
clear()
set MONTH, JULY
set DATE, 4
set YEAR, 1929
println time
}

will print -> Thu Jul 04 00:00:00 ICT 1929
:)

Initial URL
www.wysmedia.com

Initial Description
create a date using Calendar

Initial Title
Groovy: Date [1]

Initial Tags
date, java, groovy

Initial Language
Groovy