gwtbootstrap3 / gwtbootstrap3-extras

Extra (third party) wrappers for GwtBootstrap3
Apache License 2.0
43 stars 89 forks source link

DatePicker doesn't work with setFormat("dd/mmmm/yyyy"); #271

Closed davepuppets closed 8 years ago

davepuppets commented 8 years ago

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:

02/022/2016

instead of

02/February/2016

We get a similar problem with datePicker.setFormat("dd/mmm/yyyy");

ahumellihuk commented 8 years ago

To use GWT date/time format, you need to use setGWTFormat(String pattern) method instead of setFormat(String pattern), which only accepts Bootstrap format.

davepuppets commented 8 years ago

It works, thanks a lot!