1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Vote Rating
    0
    ikim is on a distinguished road

      0  

    Default DatePicker minValue

    DatePicker minValue


    Is it possible to set the minimum date (and maximum) on the Date Picker? I think this was possible with the ext datefield but don't see it here, http://docs.sencha.com/touch/2-0/#!/...eld.DatePicker. Right now the dates go all the way back to 1980 and I can't select anything past 2012.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can specify the yearFrom config in the picker config:

    Code:
    {
        xtype : 'datepickerfield',
        label : 'date',
        picker : {
            yearFrom : 2000
        }
    }
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    49
    Vote Rating
    0
    trinitrotoluen is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    You can specify the yearFrom config in the picker config:

    Code:
    {
        xtype : 'datepickerfield',
        label : 'date',
        picker : {
            yearFrom : 2000
        }
    }
    can we set the minimum value in date (eg : 05/07/2012), not in Year ? In the documentation I only found 'yearFrom' and 'yearTo' config options to set the minimum and maximum on datepicker

    Thx