Wednesday, June 22, 2016

ExtJS: How to convert long date value to mm/dd/yyyy H:i:s format

Hi

Please write the following code in your model file

Model.js

{
    name: 'DateTme',
    type: 'date',
    convert:function(v,record){
      return Ext.Date.format(new Date(v), 'm-d-Y H:i:s');
 }

View File.js

name:'DateTime',
dataIndex:'date'

No comments:

Post a Comment