Javascript date is invalid on iOS

前端 未结 7 797
忘掉有多难
忘掉有多难 2020-11-30 03:11

I\'m working on a Phonegap-based iOS app, which is already done for Android. The following lines are working fine for Android but not for iOS. Why?

var d = n         


        
相关标签:
7条回答
  • 2020-11-30 03:35

    Also

    var d = new Date("2015/12/31T00:00:00");
    

    works for me :)

    Thanks @dda

    0 讨论(0)
提交回复
热议问题