Hey guys
Thanks for the help, but I found the solution. Its so easy. :D
The DateTimeField class has a method called
newDateTextField(PropertyModel model, String id). All that I did was
override this method as follows:
DateTimeField dateToField = new DateTimeField("dateToField", new
PropertyModel(this, "dateTo")) {
@Override
public Locale getLocale() {
return new Locale("en");
}
@Override
protected DateTextField newDateTextField(String id,PropertyModel
dateFieldModel) {
return DateTextField.forDatePattern(id,
dateFieldModel,"dd/MM/yyyy");
}
};
Regards,
Yazeed Isaacs
-----Original Message-----
From: Yazeed Isaacs [mailto:[EMAIL PROTECTED]
Sent: 19 November 2008 10:47 AM
To: [email protected]
Subject: DateTimeField - changing the format of the date
Hi
I would like to change the format of the default displayed date
"MM/dd/yy" to "dd/MM/yyyy" when using the DateTimeField.
I cannot find any resource online that shows how this is implemented. Is
this even possible?
Yazeed Isaacs - Java Developer
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]