2015-02-07 15 views

回答

1

您可以在ColModel

{name: 'colNmae', index: 'ColName', formatoptions: { srcformat: "ISO8601Long", newformat: "m/d/Y h:i A" }} 

試試這個還是這個

{name: 'colNmae', index: 'ColName', sorttype: 'date', formatter: 'date', datefmt: 'd-M-Y'}, 
0

您需要設置格式化迄今在您的colModel和的jqGrid會自動檢測微軟日期格式。

srcformat不需要設置,但newformat可以。

試試這個:

colModel : [ 
... 
{name:'Mydate', ...formatter: 'date', formatoptions:{newformat 'm/d/Y'}, ...}, 
... 
] 
0

這些列屬性爲我工作

formatter: "date", formatoptions: { newformat: "ISO8601Long" } 
相關問題