PDA

View Full Version : dateFormat Question



skhealy
10 Jan 2011, 6:24 AM
Hey All,

I'm trying to make the dates returned in a grid column sortable in the m/d/Y format. It sorts on the month and day but ignores the year (it orders them like this: 03/06/1991, 03/06/1980). I am trying to accomplish this via a date renderer in the column model: renderer: Ext.util.Format.dateRenderer('m/d/Y'). Any thoughts on what I am missing or doing wrong?

Thanks,

skh

laurentParis
10 Jan 2011, 6:31 AM
what is you date format on your store ?

skhealy
10 Jan 2011, 6:46 AM
Okay...set the dateFormat in the JsonStore and that seemed to do the trick. Thanks!