PDA

View Full Version : [CLOSED] DateFormat in grid



Maitreya
Jul 09, 2014, 12:55 PM
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.

Daniil
Jul 09, 2014, 3:18 PM
Hi @Maitreya,

Please provide a full test case to reproduce it.

Maitreya
Jul 09, 2014, 3:23 PM
Hi,

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

Regards.