when reading SmartGWT DateTimeItem: accept 12 hour format I found that using TimeDisplayFormat
offers the options to display the seconds as, e.g. dateTimeItem.setTimeFormatter(TimeDisplayFormat.TOPADDED24HOURTIME);
well, but there was no change in the displaying of the date.
As the code states that TimeDisplayFormat
is deprecated, and one should use the DateDisplayFormatter
instead, I tried dateTimeItem.setDateFormatter(DateDisplayFormat.TOSERIALIZEABLEDATE);
, but still no change.
The value gets set via dateTimeItem.setValue(myDate);
Any idea what (else) I have to set to the DateTimeItem
in order to get the seconds displayed as well?
I'm using SmartGWT 3.1
PS: I tried dateTimeItem.setDisplayFormat(DateDisplayFormat.TOSERIALIZEABLEDATE);
as well, but still no change