Closed davepuppets closed 8 years ago
My code look like something like this: DatePicker datePicker = new DatePicker(); datePicker.setFormat("dd/mmmm/yyyy");
DatePicker datePicker = new DatePicker();
datePicker.setFormat("dd/mmmm/yyyy");
And then, when I try to pick up a date with the visual element, I get this:
02/022/2016
instead of
02/February/2016
We get a similar problem with datePicker.setFormat("dd/mmm/yyyy");
datePicker.setFormat("dd/mmm/yyyy");
To use GWT date/time format, you need to use setGWTFormat(String pattern) method instead of setFormat(String pattern), which only accepts Bootstrap format.
It works, thanks a lot!
My code look like something like this:
DatePicker datePicker = new DatePicker();
datePicker.setFormat("dd/mmmm/yyyy");
And then, when I try to pick up a date with the visual element, I get this:
instead of
We get a similar problem with
datePicker.setFormat("dd/mmm/yyyy");