SmartGWT Power 2.3 / Internet Explorer
What is the correct way to ensure that the date value is formatted properly in the DateTimeItem? My attempt to do so below, did not work.
The restful data source is sending its data "MM/DD/YYYY HH:MM". I tried using the following:
at the start of my "onModuleLoad()" method, but it did not propogate to the DateTimeItem.
Thanks for reviewing this.
What is the correct way to ensure that the date value is formatted properly in the DateTimeItem? My attempt to do so below, did not work.
Code:
final DateTimeItem uiStartDateTimeField = new DateTimeItem("start", "Start Time"); uiStartDateTimeField.setDisplayFormat(DateDisplayFormat.TOUSSHORTDATETIME);
Code:
DateUtil.setNormalDateDisplayFormat(DateDisplayFormat.TOUSSHORTDATETIME);
Thanks for reviewing this.
Comment