[CLOSED] [#1396] [4.2.0] DatePickerField : DateFormat Problem

  1. #1

    [CLOSED] [#1396] [4.2.0] DatePickerField : DateFormat Problem

    Hi,

    I try to display DatePickerField in a specific format (d/m/Y like 26/10/2016), but nothing is changed (still display : 10/26/2016).

    Code :

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET Mobile Example</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
    
        <ext:Viewport runat="server">
            <Items>
                <ext:FormPanel ID="basicform" runat="server">
                    <Items>
                        <ext:DatePickerField
                            runat="server"
                            DestroyPickerOnHide="true"
                            Name="date"
                            Label="Start Date"
                            DateFormat="d/m/Y">
                            <Picker runat="server" YearFrom="1990" DateValue="01/01/2016" />
                        </ext:DatePickerField>
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Viewport>
    </body>
    </html>
    Thanks.
    Last edited by fabricio.murta; Nov 04, 2016 at 3:14 AM.
  2. #2
    Hello @GRISSA! Welcome to Ext.NET forums!!!

    Thanks for reporting the issue, the sample code you provided is perfect, and we could reproduce it in our side.

    For now, please specify the date format thru the CustomConfig approach.

    For instance, remove the DateFormat= in the DatePickerField definition and add the following block in between lines 19 and 21 of your code:

    <CustomConfig>
        <ext:ConfigItem Name="dateFormat" Value="d/m/Y" />
    </CustomConfig>
    Please preserve the case in dateFormat as shown above. We have logged this issue as #1396 in our github bug tracker and we will update here as soon as we fix the issue!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Work for me.
    Thank you.
  4. #4
    Thanks for leaving your feedback on the workaround! Anyway, we got to fix this and we will update here again when we have this fixed in our code base. Thanks also for reporting the issue!
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Hello! Thanks again for reporting the issue, and we've just fixed this issue in our code base! The fix is available right now for premium subscription users, and will be publicly available in our next release!

    Now it will work like the initial sample you pointed, without the need of any custom config blocks!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] DateFormat in grid
    By Maitreya in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 09, 2014, 2:23 PM
  2. [CLOSED] ModelField DateFormat problem
    By mirwais in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 01, 2013, 12:40 PM
  3. [CLOSED] DateFormat on store?
    By Dave.Sanders in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 15, 2011, 12:55 PM
  4. Replies: 2
    Last Post: Jul 08, 2009, 12:37 PM
  5. DateFormat in Grid Problem
    By bruce in forum 1.x Help
    Replies: 1
    Last Post: Mar 19, 2009, 8:47 AM

Posting Permissions