5 Aug 2008 5:14 AM #1
DatePicker does not allow for dates that were over eighty years ago
The DatePicker does not allow for dates that were over eighty years ago . For example, when I try to select a date such as 1/1/1900 it becomes 1/1/2000. Do you know if there is a way around this?
5 Aug 2008 10:11 AM #2
You need to set the format to take a 4 digit year:
final DateField date = new DateField(); date.setFieldLabel("Birthday"); date.getPropertyEditor().setFormat(DateTimeFormat.getFormat("M/d/y"));