[CLOSED] DateField Culture

  1. #1

    [CLOSED] DateField Culture

    Hello.


    I have a date field and I am with the problem, typing for example the date 12/01/2019 is more correct if the User type 12012019 to date is 01/12/2019 culture this as Pt-BR would be the correct dd / MM / yyyy

    <ext:DateField ID="txtDtCompra" runat="server" Width="220" FieldLabel="Data da Compra" AllowBlank="false" />

    in WebConfig
        <globalization culture="pt-BR" uiCulture="pt-BR" />
    how can I solve the problem?

    Ulisses
    Last edited by Daniil; Apr 16, 2015 at 7:57 PM. Reason: Please use [CODE] tags for all the code, [CLOSED]
  2. #2
    Hi @ucaneto,

    You can set AltFormats="ddMMyyyy" for the DateField.
    http://docs.sencha.com/extjs/4.2.1/#...cfg-altFormats

    As far as I know locales don't set altFormats.
  3. #3
    Hi,
    Thank you, it works. You can close this thread.

    Ulisses

Similar Threads

  1. Datefield control + localization + korean culture
    By rashidsiddique in forum 2.x Help
    Replies: 2
    Last Post: Mar 19, 2015, 11:35 AM
  2. Replies: 4
    Last Post: Mar 26, 2012, 12:16 AM
  3. Replies: 4
    Last Post: Apr 15, 2011, 3:53 PM
  4. [CLOSED][BUG] Arrow's Culture Localization in DateField
    By SETConsulting in forum 1.x Help
    Replies: 0
    Last Post: Feb 16, 2011, 8:31 AM
  5. [CLOSED] DateField culture issue
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 16, 2009, 1:59 PM

Posting Permissions