What Is RFC 3339?

RFC 3339 is an internet profile for representing date and time values. It gives systems a consistent way to exchange an exact date-time with a UTC offset.

RFC 3339 Timestamp: 2026-05-04, Date; T09:30:00, Time; +05:30, UTC offset.

A familiar date-time shape

A common RFC 3339 value looks like 2026-10-16T09:30:00Z. It contains a four-digit year, month, day, a separator T, and a time. The trailing Z says the time is UTC. A numeric offset can be used instead, for example 2026-10-16T15:00:00+05:30.

Those two examples describe the same instant: 09:30 UTC is 15:00 at UTC+05:30. This makes the value more informative than a local date-time such as 2026-10-16T15:00:00, which gives no zone or offset and therefore cannot be interpreted as one global instant without extra context.

How it relates to ISO 8601

RFC 3339 uses a restricted form of ISO 8601 for internet date-time exchange. ISO 8601 covers a wider family of representations, including dates, week dates and durations. RFC 3339 focuses on a standard date-time form suitable for data formats and protocols. When an API says it expects RFC 3339, do not assume every string allowed by ISO 8601 will be accepted.

Systems may also support only a subset of the RFC's syntax. Some require uppercase letters, some limit fractional-second digits, and some reject values they cannot store. Read the API documentation and validate examples against the actual receiver.

Offsets and named zones

RFC 3339 values identify an instant through a date, clock time and offset. A numeric offset does not preserve the named time zone that produced it. The value +05:30 does not say whether the source was in Kolkata or another region with the same offset, nor does it provide that region's rules for future dates.

For event logs, an RFC 3339 timestamp is often a useful way to record when an event happened. For a future appointment that must remain at a particular local time, save the named zone separately. That lets an application account for future civil-time changes.

Common mistakes

  • Leaving off Z or an offset when the receiving system expects an exact instant.
  • Treating local time as UTC because it ends in a familiar date-time shape.
  • Sorting strings with different offsets as though their text order always matches instant order.
  • Assuming a date-only value means midnight UTC.

Read the full RFC 3339 specification for the formal syntax and examples used by internet protocols.

Use an RFC 3339 value when a system requests it, and keep the intended time-zone meaning clear in your data model. For the larger family of standardized date strings, read What Is ISO 8601?

Valid and invalid examples

Valid RFC 3339 timestamps:

  • 2026-12-05T08:30:00Z
  • 2026-12-05T16:30:00.25+08:00, with fractional seconds and an offset
  • 2026-12-05t08:30:00z. The RFC allows lower-case t and z, and it notes that applications may use a space instead of T for readability.
  • 2016-12-31T23:59:60Z, a leap second

Not valid RFC 3339, although some ISO 8601 parsers accept them:

  • 2026-12-05T08:30Z, because seconds are required
  • 2026-12-05T08:30:00, because there is no offset
  • 2026-12-05T08:30:00+0800, because the offset needs a colon
  • 20261205T083000Z, because the basic format without separators is not allowed
Diagram of the timestamp 2026-12-05T16:30:00+08:00 split into the date, the T separator, the 24-hour time and the +08:00 UTC offset; the same instant in UTC is 2026-12-05T08:30:00Z.
The parts of an ISO 8601 / RFC 3339 timestamp. The offset says how far the local clock is from UTC.

Unknown offsets and zone names

RFC 3339 gives -00:00 a special meaning: the time is in UTC, but the local offset is unknown. It is not the same as Z or +00:00, which say the local time really is UTC. Newer systems sometimes need the zone name as well. RFC 9557, published in 2024, adds an optional suffix for it: 2026-12-05T16:30:00+08:00[Asia/Shanghai]. The part before the brackets is still a normal RFC 3339 timestamp.

Common questions

Is every RFC 3339 timestamp valid ISO 8601?

Very nearly. RFC 3339 is a profile of ISO 8601, with a few small additions such as the space separator and the -00:00 convention.

Should APIs send RFC 3339 in UTC?

UTC with Z is the simplest to sort and compare. Send a local offset when the reader needs the original local time, and add the zone name (RFC 9557) for future events.

Sources and further reading