89

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?

A. Perez Cera
  • 1,086
  • 1
  • 9
  • 18

1 Answers1

93

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

Chris Card
  • 3,216
  • 20
  • 15
  • 1
    Chris, i'm currently usin javascript. I'll update the question. – A. Perez Cera Apr 22 '13 at 16:06
  • 22
    just to mention that UTC is not a timezone actually, https://www.timeanddate.com/time/gmt-utc-time.html ```Greenwich Mean Time (GMT) is often interchanged or confused with Coordinated Universal Time (UTC). But GMT is a time zone and UTC is a time standard.``` – Bill'o May 07 '18 at 07:45