Hi
I've implemented a custom DateConverter for that:
In my Application.java I've got:
protected IConverterLocator newConverterLocator () {
ConverterLocator converterLocator = new ConverterLocator();
converterLocator.set(Date.class, new MyDateConverter());
return converterLocator;
}
class MyDateConverter extends DateConverter where I overrode getDateFormat:
public DateFormat getDateFormat (Locale locale) {
return new SimpleDateFormat("dd/MM/yyyy", locale);
}
Then any textfield marked as Date will be converted using this date
format. I haven't used DateTimeField itself but it should probably be
the same or very close to it.
I'm using Wicket 1.3.5 Matt Yazeed Isaacs wrote:
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]
-- [EMAIL PROTECTED] +41 44 268 83 98 Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich http://www.ergon.ch ______________________________________________________________ e r g o n smart people - smart software
smime.p7s
Description: S/MIME Cryptographic Signature
