3

This is my code

{
    text: "Entrance Time",
    dataIndex: "entrance_time",
    id: "cl_absence_entrance_time",
    editor: {
        xtype: "timefield",
        format: "H:i"
    },
    format: "H:i",
    width: 200
}

but the result is

Tue Jan 01 2008 07:00:00 GMT+0700 (WIT)

how to change that become 07:00 ? please help me. Thank you

4

1 回答 1

1

您可以设置渲染器来转换日期或只使用 DateColumn:

{
    xtype: 'datecolumn', 
    format : "H:i"
    // ...
}
于 2013-05-14T17:31:40.840 回答