PDA

View Full Version : Edit date change the date format after editing



sthanar
28 Nov 2013, 2:13 AM
Hi,

My EditorGridPanel has dateField as Editable. When i edit, date format totally changed like 'Fri Nov 28 00:00:00 UTC+0530 2013' , i have tried few of examples by googling. Nothing works. Help me out.

I want date to be displayed in 'Y-m-d' and while editing it should be 'Y-m-d' and after selecting new date it should be 'Y-m-d'. How?

Note: I am using Ext Js 3.2.1

code snippet:
{
header: "Scheduled Date",
dataIndex: 'scheduleddate',
width: 250,
type: 'date',
format:'Y-m-d',
sortable: true,
editor : {
xtype : 'datefield',
format: 'Y-m-d',
submitFormat: 'c'
}

Thanks,
Senthil

mitchellsimoens
3 Dec 2013, 1:04 PM
In the field it shows the full date string or in the column?