Skip to content Skip to sidebar Skip to footer

How To Get A Zulu Timezone Representation Of The Current Date

I would like to get the current date in ISO 8601 (rfc3339), Zulu format: 2015-10-13T10:26:43Z How can I do this in Javascript?

Solution 1:

You can use toISOString()

var isoDate = newDate().toISOString();
console.log(isoDate);

Hope it helps,

Post a Comment for "How To Get A Zulu Timezone Representation Of The Current Date"