Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression. The returned value includes enclosing double quotation marks.
The default return format is "yyyy-mm-ddThh:mm:ss".
To override this:
Ext.JSON.encodeDate = function(d) {
return d.format('"Y-m-d"');
};