Date[2] – Jodatime

import org.joda.time.DateTime;

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

source

Comments are closed.