ISO 8601 is the international standard for writing dates and times as text. The current time in UTC reads:
UTC offset. The difference from UTC, written ±hh:mm. This is your offset right now. It changes with daylight saving time, which is why an offset is not a time zone.
Representations
Every representation has an extended form with separators and a basic form without them. Use extended unless something requires otherwise. The values below show the current time.
Builder
2026-11-14T07:22:49Z
YYYY-MM-DDThh:mm:ssZ
Valid ISO 8601 and RFC 3339. Suitable for APIs, logs and storage.
Durations and intervals
A duration begins with P. Date units come first. T separates them from the time units, so P1M is a month and PT1M is a minute. Type any field below to build one.
P1Y2M10DT30M is 1 year, 2 months, 10 days and 30 minutes.
Common mistakes
The week-year can differ from the calendar year. Week 01 is the week that contains the year's first Thursday, so a few days at each end of a year can belong to the neighbouring week-year.
2024-12-30 = 2025-W01-1
2021-01-01 = 2020-W53-5A time without an offset is local time. The string doesn't say which locality, and some local times never happen. Store instants in UTC or with their offset.
2026-03-08T02:30:00
doesn't exist in most of the USM means months before T and minutes after it. Leaving out the T changes a minute into a month.
P1M = 1 month
PT1M = 1 minuteStrings only sort chronologically when they match. They need the same representation, the same precision and the same offset. Normalize to UTC before sorting or comparing as text.
10:00+02:00 sorts after 09:00Z
but happens an hour earlierRFC 3339 is a stricter profile. It requires a full date, a full time and an offset, in extended form. Week dates, ordinal dates and durations are ISO 8601 only.
2026-W46-2 ISO 8601 only
2026-11-10T18:05:00Z bothAn offset is not a time zone. An offset records one moment's distance from UTC. A zone such as America/Chicago is a set of rules that changes with daylight saving time. For future local events, store the zone name.
America/Chicago
−06:00 in winter, −05:00 in summer
In code
The usual way to produce a UTC timestamp in each language. The output column shows the current time.
History
- 1988First edition. Replaced ISO 2014, 2015, 2711, 3307 and 4031, which had covered dates, week numbers, ordinal days, times and offsets separately.
- 2000Second edition.
- 2002RFC 3339 defines a profile of ISO 8601 for internet protocols.
- 2004Third edition.
- 2019Split into two parts. Part 1 holds the basic rules. Part 2 holds extensions, including the Library of Congress's Extended Date/Time Format.