UNIX时间戳在煎茶触摸DatePickerField

问题描述:

我试图用一个Unix时间戳值作为在煎茶触摸一个DatePickerField默认值。下面是我使用窗体的代码:我已经尝试添加dataType: 'time'的声明UNIX时间戳在煎茶触摸DatePickerField

var profileForm = new Ext.form.FormPanel({ 
    title: 'Profile', 
    standardSubmit : false, 
    items: [{ 
     xtype: 'fieldset', 
     title: '', 
     instructions: 'Edit your profile above', 
     defaults: { labelAlign: 'left', labelWidth: '40%' }, 
     items: [{ xtype: 'datepickerfield', name: 'dob', label: 'DoB', value: user.dob }] 
    }] 
}); 

,但没有成功。关于如何在不创建自定义Date类来处理时间戳的情况下实现这一点的想法?

你也可以使用,因为标准组件的定制组件see this thread on Sencha forum时间不工作。或日期选择器from this thread