PDA

View Full Version : Date formatting



jagdeep.sharma
15 Nov 2012, 9:30 PM
I want to format my date field as 5 Nov 2012 07:23 AM. What could be the possible date pattern for this in extjs? Currently I am using "d F Y g:i A" which gives me 05 November 2012 7:23 AM. Any thoughts?

suzuki1100nz
15 Nov 2012, 10:08 PM
Sure try looking here - http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Date

jagdeep.sharma
15 Nov 2012, 10:37 PM
Sure try looking here - http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Date

This perfectly answers my questions. Thanks

pcr
16 Nov 2012, 11:13 AM
I use moments.js for all my dateformatting.
Look at: http://www.momentjs.com