0

I have a string like 2020-09-30T06:30:00Z

when I try to convert it into Date object it defaults time to 12:00

var d = new Date('2020-09-30T06:30:00Z');
console.log(d);
console.log(d.toString());

I am not sure about the reason.

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122

0 Answers0