Converting a string formatted YYYYMMDDHHMMSS into a JavaScript Date object

后端 未结 6 626
借酒劲吻你
借酒劲吻你 2021-01-06 02:33

I have a string with a date in it formatted like so: YYYYMMDDHHMMSS. I was wondering how I would convert it into a JavaScript Date object with JavaScript.

Thanks in

6条回答
提交回复
热议问题