← All guides

UTC, Time Zones and the ISO 8601 Date Format

UTC is the world's time reference, and ISO 8601 is the standard way to write a date and time. Learn how they work and why they prevent date bugs.

UTC (Coordinated Universal Time) is the global reference clock, and ISO 8601 is the standard text format for writing a date and time unambiguously, like 2024-03-15T09:30:00Z.

Why UTC matters

Local times shift with time zones and daylight saving, which makes them error-prone for storage. Systems store moments in UTC and convert to local time only for display, so a meeting at one instant is the same instant everywhere.

The ISO 8601 format

YYYY-MM-DDThh:mm:ssZ orders fields from largest to smallest:

  • Date first: 2024-03-15
  • T separates date and time
  • Time: 09:30:00
  • Z means UTC; an offset like +05:30 marks a specific zone

Because it sorts correctly as plain text and has no day/month ambiguity, ISO 8601 is the safe default for logs, APIs and filenames.

Avoid the classic bug

03/04/2024 is 3 April in some countries and 4 March in others. ISO 8601 removes that confusion entirely.

Convert now

Move between timestamps, UTC and local dates with the timestamp converter. Related: What is a Unix timestamp.

Explore Tool Suite