Datefield

  1. #1

    Datefield issue on Date/Month

    Hi,
    I've searched the forums for the solution to my problem, and tried for a some of the approaches, but i cant get Datefield working as i want.

    I've got a datefield with Format property set to: "dd/MM/yyyy".

    I noticed the control automatically puts the "/" when u add the date without it (ex. "01111900" - ddMMyyyy). Also noticed that when it
    automatically adds the "/" he switch the month and day values. It is shown "11/01/1900" on the control. However, if the user type the "/" on the datefield, the controls shows correctly (on the example above, it allows and shows "01/11/1900")
    Also, when i enter a valid date on the format (d-M-y), ex. 22/10/2000, it shows me error message of invalid date (the date should have d-M-y format).

    I really need to disable this month/day switch. I've tried some localization configuration and it still keep changing day/month values.

    Can any of you help me with this issue?
    Thanks in advance
    Last edited by Felipe Torres; Mar 06, 2013 at 12:49 PM.
  2. #2
    Please use Format and AltFormats properties
    http://docs.sencha.com/ext-js/4-1/#!...ate-cfg-format
    http://docs.sencha.com/ext-js/4-1/#!...cfg-altFormats

    Also, you can set required locale in ResourceManager (Locale property, please note that not all locales are supported)
    https://examples2.ext.net/#/Miscellaneous/Locale/Basic/

Similar Threads

  1. Replies: 6
    Last Post: Jan 09, 2013, 10:30 AM
  2. [CLOSED] DateField - From To Range
    By thchuong in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2012, 9:17 AM
  3. Cannot set value of DateField
    By zhaoxl in forum 1.x Help
    Replies: 2
    Last Post: Feb 08, 2012, 6:48 AM
  4. DateField and ASP.NET MVC
    By DavidS in forum 1.x Help
    Replies: 2
    Last Post: Jul 06, 2011, 6:16 AM
  5. DateField Bug
    By dannyrih in forum 1.x Help
    Replies: 2
    Last Post: Jan 04, 2010, 3:06 PM

Tags for this Thread

Posting Permissions