PDA

View Full Version : date column format



nimaous
22 Jun 2012, 9:52 PM
Hi
I add 'Y-m-d' format to my date column editor ( I use row Edit Plugin) but the format is like this
"2012-06-18T00:00:00"


How I can remove T00:00:00 I just want simple 2012-06-18

sword-it
22 Jun 2012, 11:14 PM
Hi!,

You can use dateRenderer for your needs.

sample is below:-




columns: [
{
header: 'Date',
width: 105,
renderer:Ext.util.Format.dateRenderer (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.util.Format-method-dateRenderer)('Y-m-d')
dataIndex: 'dataIndex'
}
]