Return to Snippet

Revision: 10505
at January 2, 2009 11:35 by callmeblessed


Initial Code
import org.joda.time.DateTime;

new DateTime().withDayOfMonth(4).withMonthOfYear(7).withYear(1776).println('EEE, 'dd/MM/yyyy HH:mm:ss');

Initial URL
www.wysmedia.com

Initial Description
another way to set / create a date using jodatime
download jodatime at http://joda-time.sourceforge.net/

Initial Title
Groovy: Date[2] - Jodatime

Initial Tags
date, groovy

Initial Language
Groovy