Hi,
I have a datefield that submits a datetime value to the server. Problem is, the datetime value is not of type date. This is submitted:
"START_VALIDITY_DATE":"2012-09-07T00:00:00",
The "T" in 2012-09-07T00:00:00 should not be there. I'd rather only have the date (2012-09-07). How can I tell ext (3.4) to change the format of the datevalue it's submitting?
Code:
,{
xtype: 'datecolumn',
header: 'Valid from',
dataIndex: 'START_VALIDITY_DATE',
sortable: true,
format: 'd-n-Y',
editor:{
xtype: 'datefield',
format:'m/d/Y',
allowBlank: false,
altFormats:'d/n/Y|d n Y',
minValue: (new Date()).format('m/d/Y'),
minText: 'Can\'t set a start date in the past.'
//maxValue: (new Date()).format('m/d/Y')
}
}