Extjs QuickTip, Date Format in a Grid

A quick tip to render Dates in Extjs Grids is using Ext.util.Format.dateRenderer passed to the renderer attribute.

var grid = new Ext.grid.GridPanel({
        id: 'tem2-grid',
        ..
        ,
        columns: [{
            id       : 'date',
            dataIndex: 'date',
            menuDisabled: true,
            renderer: Ext.util.Format.dateRenderer('d/m/Y')
        }]

 

 

2 Replies to “Extjs QuickTip, Date Format in a Grid”

Leave a Reply