I have the problem with a editable grid. in the grid there is a datecolumn. if i change the value with the datefield to 23.12.2022 for example and save the row. the server saves it correct but in the gridcolumn i get the dateformat "fri dec 23 2022 00:00:00 GMT+0100". where is my problem? i cant find any solution that works. i tried it with in the data model i tried some in the datefield like submitformat. i always got the gmt string and not the well formated date d.m.Y in the columnfield. has anyone an idea?
0
votes
1 Answers
0
votes
In your datecolumn, specify the format, like:
columns: [
{
text: 'Date',
dataIndex: 'date',
xtype: 'datecolumn',
format: 'd.m.Y' //This is the format that you want
},
// other grid columns
]
You can check more date formats at: https://docs.sencha.com/extjs/7.0.0/modern/Ext.Date.html