PDA

View Full Version : Problem with displaying time in grid



vivekh
23 May 2011, 2:24 AM
I'm trying to display time in my grid column. But it is displaying date of the current day.
Here's the code.


{name: 'stime', type: 'date', dateFormat: 'H:i'},

Column:

columns: [{header: 'Start Time', dataIndex:'stime', xtype: 'datecolumn', renderer: Ext.util.Format.dateRenderer('H:i')}]

JSON:

{["stime":"07:00"]}


Is this the right way to go about to display time in a grid?