use this DateLabel.forDatePattern(java.lang.String id, IModel model, java.lang.String datePattern)
cheers, roman users@wicket.apache.org wrote: > > Hi All, > > I need some help displaying date correctly in Label. I am using a text > field(and DatePicker) to take date input and storing it in mySQL database. > But while displying it as a "Label" I am only seeing time (i.e it always > shows 12:00 am).The date in database is correct. > > Here is how I am doing it. > > # For uploading > TextField uploadDate = new TextField("uploadDate",Date.class); > uploadDate.add(new DatePicker()); > > #For displaying(in a ListView) > > item.add(new Label("uploadDate ",new > PropertyModel(item.getModel(),"uploadDate "))); > > > #Environment: > Wicket 1.3.2 (also includes joda time) > MySQL(5.5x) > > > Can someone please help. > Thanks, > RG > -- > View this message in context: http://www.nabble.com/Displaying-date-as-Label.-tp16467546p16467546.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Liland ...does IT better Liland IT GmbH Creative Master email: [EMAIL PROTECTED] office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]