Hello,
I'm using SmartGWT 2.1 and am having issues with date / datetime formats.
I need different custom (European dd.mm.yyyy style) display and input formats for DateItems and DateTimeItems (one with the time for the latter, obviously). I have set the date formats globally:
but this sets the date formats for both DateItem and DateTimeItem. Is there a way of setting different custom formats for the two types of date inputs? Could I for example set different short and normal formats, and somehow make DateItem use the short one and DateTimeItem use the normal one? Or should I be setting the formats for every DateItem and DateTimeItem manually?
If so, how do I set a custom date formatter? The setDateFormatter method seems to accept only a few predefined DateDisplayFormats.
TY,
-PM
I'm using SmartGWT 2.1 and am having issues with date / datetime formats.
I need different custom (European dd.mm.yyyy style) display and input formats for DateItems and DateTimeItems (one with the time for the latter, obviously). I have set the date formats globally:
Code:
DateUtil.setShortDateDisplayFormatter(new MyDateFormat()); DateUtil.setNormalDateDisplayFormatter(new MyDateFormat());
If so, how do I set a custom date formatter? The setDateFormatter method seems to accept only a few predefined DateDisplayFormats.
TY,
-PM
Comment