Home‎ > ‎UI‎ > ‎

DateTime


DateTime Formats

DateBox dateStart = new DateBox();

// short format '2012-03-01'
DefaultFormat format = new DateBox.DefaultFormat(DateTimeFormat.getFormat(PredefinedFormat.DATE_SHORT));
dateStart
.setFormat(format);
DateBox dateStart = new DateBox();

// short format '2012-03-01'
DateTimeFormat dateTimeFormat = DateTimeFormat.getFormat(PredefinedFormat.DATE_SHORT);
DefaultFormat defaultFormat = new DateBox.DefaultFormat(dateTimeFormat);
dateStart
.setFormat(defaultFormat);



Comments