Groovy: Date[2] - Jodatime


/ Published in: Groovy
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. import org.joda.time.DateTime;
  2.  
  3. new DateTime().withDayOfMonth(4).withMonthOfYear(7).withYear(1776).println('EEE, 'dd/MM/yyyy HH:mm:ss');

URL: www.wysmedia.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.