Does Javascript/EcmaScript3 support ISO8601 date parsing?

后端 未结 4 717
生来不讨喜
生来不讨喜 2020-12-01 18:57

How are you currently parsing ISO8601 dates e.g. 2010-02-23T23:04:48Z in JavaScript?

Some browsers return NaN (including Chrome) when using the cod

4条回答
  •  一向
    一向 (楼主)
    2020-12-01 19:24

    This is an excellent implementation which covers edge cases and falls back to native implementation. https://github.com/csnover/js-iso8601/

提交回复
热议问题