【发布时间】:2017-10-14 03:16:24
【问题描述】:
这是我从后端"2017-05-23T18:30:00" 收到的日期,
这在 Chrome 中运行良好:
- 电话:
new Date('2017-05-23T18:30:00').toString() - 结果:
"Wed May 24 2017 00:00:00 GMT+0530 (India Standard Time)"
但在 Internet Explorer 上:
- 电话:
new Date('2017-05-23T18:30:00').toString() - 结果:
"Tue May 23 2017 18:30:00 GMT+0530 (India Standard Time)",
当我进入 Chrome 时,如何从 Internet Explorer 中的 UTC 日期获取本地日期时间?
【问题讨论】:
-
如果您专门将时间标记为 UTC 是否有帮助:
2017-05-23T18:30:00Z -
@Henry 谢谢,它的工作
标签: javascript date internet-explorer-11 momentjs datejs