Tuesday, September 23, 2014

How to simply add more years into DatePicker in GWT and use the format to DD-MM-YYYY when a date was selected?

Look at this code,

DateBox myDateBox=new DateBox();  myDateBox.getDatePicker().setYearAndMonthDropdownVisible(true);  DateTimeFormat dateFormat = DateTimeFormat.getFormat("DD-MM-YYYY");  myDateBox.setFormat(new DateBox.DefaultFormat(dateFormat));  

Ok, when I clicked on the DateBox the DatePicker got popped up but I could not see years like from 1600, so How to add more years into DatePicker?

Alos, I want to use the format to DD-MM-YYYY when a date was selected but when clicked on a date nothing appeared in the DateBox?


http://stackoverflow.com/questions/26005633/how-to-simply-add-more-year-into-datepicker-in-gwt-and-use-the-format-to-dd-mm-y

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment