In my environment, using the following lines of code :
DateItem theDepartureTimeField = new DateItem("xx");
theDepartureTimeField.setTitle("Departure Time");
theDepartureTimeField.setUseTextField(true);
theDepartureTimeField.setDateFormatter(DateDisplayFormat.TOSERIALIZEABLEDATE);
When I pick up the date with the DateChooser, I can see values like : 2013-01-16 14:00:00
And each time I activate the DateChooser and I close it using the Cancel button, the time value change.
If I change the theDepartureTimeField type from DateItem to DateTimeItem, when I pick up the date with the DateChooser, I can see values like : 2013-01-16
the time disappears.
Why when I use DateItem I can see time, and not when I use DateTimeItem ?
Any help is greatly appreciated..
Thanks,
Smart GWT Client 3.1p
Firefox 16.0.2
Windows Seven
DateItem theDepartureTimeField = new DateItem("xx");
theDepartureTimeField.setTitle("Departure Time");
theDepartureTimeField.setUseTextField(true);
theDepartureTimeField.setDateFormatter(DateDisplayFormat.TOSERIALIZEABLEDATE);
When I pick up the date with the DateChooser, I can see values like : 2013-01-16 14:00:00
And each time I activate the DateChooser and I close it using the Cancel button, the time value change.
If I change the theDepartureTimeField type from DateItem to DateTimeItem, when I pick up the date with the DateChooser, I can see values like : 2013-01-16
the time disappears.
Why when I use DateItem I can see time, and not when I use DateTimeItem ?
Any help is greatly appreciated..
Thanks,
Smart GWT Client 3.1p
Firefox 16.0.2
Windows Seven