What does the ".000Z" of "yyyy-mm-ddT00:00:00.000Z" mean?

JavascriptDatetimeFormattingTimezone

Javascript Problem Overview


I've gotten a response from one application with the following date & time format:

> yyyy-mm-ddT00:00:00.000Z

I need date and time for a report I have to present. What does the .000Z mean? What do I need to do to get the time according to a region using javascript?

Javascript Solutions


Solution 1 - Javascript

.000 is the fraction of a second and Z indicates UTC timezone.

How you convert to your local time will depend on which programming language you prefer, but for example Perl has standard modules for parsing and formatting times.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionA. Perez CeraView Question on Stackoverflow
Solution 1 - JavascriptChris CardView Answer on Stackoverflow