← TechnologyThe essentials of

toISOString(): moment is recorded in UTC

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 13:13 · Updated: 22 Oct 2026 13:13

AI source check: 21 Oct 2026 12:40. This is not editorial approval.

In a few sentences

In brief

The letter Z at the end denotes zero offset.

Useful to know

toISOString() returns a representation of Date in a standardized timezone format UTC. For example, new Date("2026-01-01T12:00:00+02:00").toISOString() gives "2026-01-01T10:00:00.000Z". The moment is the same, the display is different . [1]

This is convenient for exchanging between systems, but it is not a localized label for a person. For interface, use the appropriate time zone and format separately. Do not cut out the first ten characters mechanically if you are looking for the local calendar date: around midnight it may differ from the UTC date.

Sources

For further detail and to check the information:

  1. [1] MDN — Date.toISOString ↗