Convert string returned by new Date().toString() back to a date using date-fns

前端 未结 0 1947
面向向阳花
面向向阳花 2020-12-18 04:52

Let\'s say I have produced a date like this: const myDate = new Date().toString()

Using JS date-fns, I now want to convert it back to a Date object so th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题