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?

RFC 3339 versus everyday ISO 8601

RFC 3339 is a profile of ISO 8601 tailored for internet protocols. It requires a complete date and time with an offset or Z for UTC, for example 2026-12-05T08:30:00Z or 2026-12-05T16:30:00+08:00. That removes several optional ISO forms that are useful on paper but awkward in APIs.

Many JSON APIs accept RFC 3339 timestamps because they sort lexicographically when stored as text in UTC and parse consistently across languages. If a field is only a calendar date, send a date-only string such as 2026-12-05 instead of inventing a midnight timestamp. Related guides: ISO 8601 and date-only values versus timestamps.