,In GridPanel this column does not display data.Code:<ext:RecordField Name="StatTime" Type="Date" DateFormat =" Y/m/d"/>
But removed the DateFormat ="Y/m/d" normal.
Give me a hand! Thank you.
Printable View
,In GridPanel this column does not display data.Code:<ext:RecordField Name="StatTime" Type="Date" DateFormat =" Y/m/d"/>
But removed the DateFormat ="Y/m/d" normal.
Give me a hand! Thank you.
Hi,
Please use DateFormat if you bind a string to that RecordField. It will try to parse that string to get a date object.
If you bind a DateTime object to that RecordField, you don't need to set up DateFormat.
To display a date in a required format please use an <ext:DateColumn> setting up a respective Format in .NET date format string.
Example
Code:<ext:RecordField Name="dateField" Type="Date" />
<ext:DateColumn Header="Date" DataIndex="dateField" Format="yyyy/MM/dd" />
Thank you. Like EXTNET
Hi @batchmm76,
Please start a new forum thread. If you feel the threads are related, please feel free to cross link between the two ones.