javascript - get next day of a string

后端 未结 8 1268
一向
一向 2020-12-16 04:22

I\'ve a var example = \"05-10-1983\"

How I can get the \"next day\" of the string example?

I\'ve try to use Date object...b

相关标签:
8条回答
  • 2020-12-16 04:46
    new Date(+new Date('05-10-1983'.replace(/-/g,'/')) + 24*60*60*1000)
    
    0 讨论(0)
  • 2020-12-16 04:46

    You can use framework called php.js. Google for it. This includes the advanced date functions and more

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