PDA

View Full Version : Default dateFormat to use for models



tm8747a
13 Dec 2012, 7:56 AM
My server returns date data in the following format: 'Y-m-d H:i:s.u'. I'd like to avoid having to add dateFormat to every single date field in my models since this format will always be the same. I know that you can use Ext.Date.defaultFormat to set a default for how to output dates, but is there a similar default for a format to use when converting dates coming from the server?

mitchellsimoens
15 Dec 2012, 7:45 AM
You will need to specify dateFormat on each.