1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    2
    Vote Rating
    0
    iannellc is on a distinguished road

      0  

    Default DatePicker does not allow for dates that were over eighty years ago

    Hello,

    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?

    Thanks,

    Chris

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default

    You need to set the format to take a 4 digit year:
    Code:
        final DateField date = new DateField();
        date.setFieldLabel("Birthday");
        date.getPropertyEditor().setFormat(DateTimeFormat.getFormat("M/d/y"));

Thread Participants: 1