1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    20
    Vote Rating
    0
    simonr26 is on a distinguished road

      0  

    Question Unanswered: How overwrite default date validation?

    Unanswered: How overwrite default date validation?


    Hello,


    I have a form with a datefield which carries out default validation
    in the format: "m/d/Y"
    I require validation and also rendering to be in format: "d/m/Y".
    Please can you indicate the best/easiest way to do this?

    kind regards,
    Simon

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,592
    Answers
    541
    Vote Rating
    323
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    There are examples at the top of the docs for datefield explaining how to do this:

    http://docs.sencha.com/ext-js/4-0/#!...orm.field.Date

    You should be able to do what you want using the config setting format, or possibly altFormats:

    http://docs.sencha.com/ext-js/4-0/#!...ate-cfg-format
    http://docs.sencha.com/ext-js/4-0/#!...cfg-altFormats

Thread Participants: 1