← TechnologyThe essentials of

Intl.DateTimeFormat: one moment in different time zones

Publisher: ResumeMaker • 1 source

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

AI source check: 21 Oct 2026 10:06. This is not editorial approval.

In a few sentences

In brief

Formatting a date requires a choice of language and time zone. The same value can be displayed as a different local time.

Useful to know

Intl.DateTimeFormat formats dates and times according to language and options. When it's important which local hour the reader sees, set timeZone prominently instead of relying on the device or server setting. [1]

Example: const date = new Date('2026-01-15T12:00:00Z'); new Intl.DateTimeFormat('bg-BG', {timeZone: 'Europe/Sofia', hour: '2-digit', minute: '2-digit', hourCycle: 'h23'}).format(date). For the indicated winter moment, the time in Sofia is 14:00. The example is not a rule that Sofia is always two hours ahead of UTC.

The time zone is not the same as the language . bg-BG defines language conventions to display, while Europe/Sofia defines local time and seasonal rules. [1]

Store the exact moment with the necessary zone information or UTC, a format according to the audience. The text "published at 12:00" without context can mean different moments for different people.

Sources

For further detail and to check the information:

  1. [1] MDN — Intl.DateTimeFormat ↗