[CLOSED] DateFormat in grid

  1. #1

    [CLOSED] DateFormat in grid

    Hi,

    I am using DateFormat="d MMM yyyy H:i:s" to display date and time value in grid. After upgrading to 2.x, it shows datetime for some rows but doesnt show for others.

    Example: It shows 2011-07-22 10:01:05.700 date time correctly but it doesn't show 2011-07-22 07:08:39.843.

    Model:
                <Model>
                                <ext:Model runat="server">
                                    <Fields>
                                        <ext:ModelField Name="Adt" Type="Date" DateFormat="d MMM yyyy H:i:s" />
                                    </Fields>
                                </ext:Model>
                            </Model>
    
                 <ColumnModel ID="AuditColumnModel" runat="server">
                            <Columns>
                                <ext:DateColumn Tooltip="" Text="Audit Time" DataIndex="Adt" Format="d MMM yyyy H:i:s"
                                    Sortable="true" Width="120px" >
                                </ext:DateColumn>
                 </ColumnModel>
    Can you please check?

    Thanks.
    Last edited by Daniil; Jul 09, 2014 at 2:32 PM. Reason: [CLOSED]
  2. #2
    Hi @Maitreya,

    Please provide a full test case to reproduce it.
  3. #3
    Hi,

    I managed to fix it by changing DateFormat to dd MMM yyyy HH:mm:ss.

    Regards.

Similar Threads

  1. [CLOSED] Version 1.2 Grid/Store DateFormat
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 04, 2011, 5:14 PM
  2. [CLOSED] [1.0] DateFormat="M$" not working
    By Fredrik in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 28, 2011, 4:04 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