Hi, Here is one example: https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?source=cc#L128
On Thu, Jun 13, 2013 at 12:28 PM, <christoph.ma...@t-systems.com> wrote: > Hello, > > In my application the server's timezone could be different to the client's > timezone. So in my BasicPage I get the client's timezone with this call: > ((WebClientInfo)getSession().getClientInfo()).getProperties().getTimeZone(); > > So every DateTextField and DateLabel should convert the date between > client and server right? Now I want to add a DateLabel. The constructor > wants a Converter so I add this: > > DateLabel datelabel = new DateLabel("date",new > PropertyModel<Date>(model,"eventTimestamp"),new DateConverter(true) { > @Override > public String getDatePattern(Locale locale) { > return "dd.MM.yyyy HH:mm:ss"; > } > > @Override > protected DateTimeFormatter getFormat(Locale locale) { > return null; //To change body of implemented methods > use File | Settings | File Templates. > } > > }); > I don't now how to override the getFormat-method. Can you help me please? > > Thanks > > Mit freundlichen Grüßen > Christoph Manig > > >