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.
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.