var
store = Ext.create("Ext.data.ArrayStore", {
fields: [
{ name: "id", type: "int" },
{ name: "value", type: "date", dateFormat: "c" }
],
proxy: {
type: "memory",
reader: {
type: "array"
}
},
data: [
[ 1, "2012-04-19T14:55:13.123" ],
[ 2, "2012-04-19T11:55:13.123Z" ],
[ 3, "2012-04-20T19:00:00.000" ],
[ 4, "2012-04-20T19:00:00.000Z" ]
]
});
Ext.create("Ext.form.field.ComboBox", {
store: store,
valueField: "id",
displayField: "value",
queryMode: "local",
editable: false,
listConfig: {
tpl: new Ext.XTemplate("<ul><tpl for=\".\"><li role=\"option\" class=\"" + Ext.baseCSSPrefix + "boundlist-item" + "\"><div>{value:date(\"d.m.Y\")}</div></li></tpl></ul>")
},
renderTo: Ext.getBody()
});