Ext.data.proxy.WebStorage uses code like this to encode/decode date fields:



dateFormat = field.getDateFormat();
if (dateFormat) {
data[name] = Ext.Date.format(rawData[name], dateFormat);
}...