I cannot create a new JavaScript Date object from this ISO string:
"2024-06-09T04:00:00.000Z"
Here is my code:
const myDate = new Date("2024-06-09T04:00:00.000Z");
console.log(myDate);
The output is simply: Invalid Date
.
How can I create a new javascript Date object from the ISO string?