Results 1 to 2 of 2

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

  1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    2
    Vote Rating
    0
      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
      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"));

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •