Extjs grid Model has,
{
name: "ORDERDATE",
type: 'date',
dateFormat: 'MS'
}
and I tried sync store that has above model,
then the date posted format is like this (Json Type),
ORDERDATE "\/Date(1346212800000)\/"
and I guess because of this format,
in Asp.net(C#) couldn’t get that value using DateTime? variable.
I tried to receive that data using DateTime? ORDERDATE, but it has Null value all the time.
So, I want to try to change the date post format as ‘m/d/y’, but I don’t know how to do this,
anybody know, please advice me.
Thank you.
I was having the same problem. Using the
convertconfig (docs) on my date field worked for me.So my model has something like:
I believe in the future we can use the
serializeconfig (docs) which converts the field before sending model to server. Sounds like it is only working in 4.1.2 and beyond.In that case, I believe this would work: