when I execute the following line in Node
> let x = new Date()
> x
i get something like
2020-06-04T21:51:08.059Z
what is .059Z and how would it translate to GMT timezone?
when I execute the following line in Node
> let x = new Date()
> x
i get something like
2020-06-04T21:51:08.059Z
what is .059Z and how would it translate to GMT timezone?
"Z" is kind of a unique case for DateTimes. The literal "Z" is actually part of the ISO 8601 DateTime standard for UTC times.
let x = new Date();
let gmtZone = x.toGMTString();
console.log(gmtZone)