【发布时间】:2016-12-21 09:49:37
【问题描述】:
大家好~我正在使用 Kendo 网格从服务器端 Web API 显示日期时间列。
在Chrome中,结果按预期显示。但是在IE中,我遇到了一些问题:
在响应正文中,我得到了数据:
[{"SerialNO":43,"SurveyCyclesSN":null,"StartDateTime":"2016-12-21T00:00:00","EndDateTime":"2016-12-30T11:00:00"}]
在 Chrome 中,剑道网格将 UTC 时间正确地转换为本地时间: the correct value
但在 IE 中,日期时间不能正确转换: the wrong value
对这个问题有什么建议吗?谢谢~
【问题讨论】:
-
您希望输出哪种格式?
-
嗨~我用这段代码做格式:
-
kendo.toString(kendo.parseDate(StartDateTime), 'yyyy/MM/dd')
标签: kendo-grid