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,078
  • 7
  • 55
  • 112

0 Answers0