I need to convert this:
2020-10-19T16:30:00+00:00
To this:
2020-10-30T20:00:00.000Z
This data comes from the db as a string.
db
string
What is the right way to do that?
Thank you in advance!
Try this:
const tmpDate = Date.parse(2020-10-19T16:30:00+00:00);
const date = tmpDate.toISOString(); //2020-10-19T16:30:00.000Z
2.1m questions
2.1m answers
60 comments
57.0k users