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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar