Javascript date parsing on Iphone

后端 未结 5 1557
予麋鹿
予麋鹿 2020-12-04 20:04

I\'m working on an offline capabable Javascript site that targets mobile devices. One such mobile device is the IPhone.

I\'m trying to parse a date from our REST API

5条回答
  •  旧时难觅i
    2020-12-04 20:33

    Wrapping Up with the string will do the magic. Since the safari has some unique way of parsing and formatting date

    Date.parse(String("2010-03-15 10:30:00"));
    

    Still facing issue use the Moment.js

    Happy to help. :-)

提交回复
热议问题