PDA

View Full Version : DateField format



g1_
10 May 2010, 5:46 AM
Hi,

Anyway to change the format of a DateField from mm/dd/yy to dd/mm/yy?

Thanks :)

sven
10 May 2010, 6:14 AM
Get the propertyeditor from the datefield and change the format

g1_
10 May 2010, 6:28 AM
Thanks sven!

For future searchers:

startDate.getPropertyEditor().setFormat( DateTimeFormat.getFormat("dd-MM-yyyy") ) ;