I need to convert a string eg: "6 Aug 2020 23:40"
to a date object which I can then use to convert to ISO. I am aware of the Date.parse()
and new Date()
but could not find for this particular format.
Seems to work fine here:
'use strict';
let o = new Date('6 Aug 2020 23:40');
console.log(o);
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments