Internet Explorer, Json.Net JavaScript date and milliseconds issue

后端 未结 2 1421
孤城傲影
孤城傲影 2021-01-02 08:55

I\'m not sure if it\'s me missing something - or IE or Json.Net.

But basically this works:

new Date(\"2012-08-03T12:36:54.743Z\")

This f

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-02 09:14

    It's IE. The most comprehensive explaination and answer I found is at JavaScript: Which browsers support parsing of ISO-8601 Date String with Date.parse

    In particular

    IE9 was failing on milliseconds with digit counts other than 3: (fixed in IE10)

提交回复
热议问题