/Date(1352658600000)/
当显示日期时 日期未以正确的格式显示。
如何转换成正确的格式(dd/mm/yyyy)
?
最佳答案
进行转换所需要做的就是在 jqGrid colum 模型中设置 date
格式化程序:
$('#gridId').jqGrid({
...
colModel: [
...
{ name: 'Column Name', index: 'Column Index', ..., formatter: "date", formatoptions: { newformat: "m/d/Y"} },
...
],
...
});
对于 newformat
选项,jqGrid 支持 PHP date formatting .
关于asp.net-mvc-3 - 在JqGrid中显示日期时间../Date(1352658600000)/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13644162/