RFC 3339 vs ISO 8601: Which Timestamp Format Belongs in Notes
RFC 3339 vs ISO 8601 in one answer
For notes, type timestamps in the RFC 3339 shape, such as 2026-11-18T14:30:00-05:00. It is the strict, Internet-friendly slice of ISO 8601, and the same string reads correctly in both. People use the two names interchangeably because one is a profile of the other. Below: what each allows, where they differ, and what to type in a note.
What ISO 8601 covers
ISO 8601 is the international standard for exchanging date and time data. According to Wikipedia's overview, it was first published in 1988 and revised in 1991, 2000, 2004 and 2019, with an amendment in 2022.
It covers far more than the 2026-11-18 most people picture:
- calendar dates (
2026-11-18or20261118) - week dates (
2009-W01-1) - ordinal dates (
1981-095, the 95th day of 1981) - 24-hour times, with optional decimal fractions
- durations (
P1Y2M10DT2H30M, orPT1Mfor one minute) - time intervals and recurring intervals
Each value can be written in a basic format with minimal separators, or an extended format with hyphens and colons added for readability. The two shouldn't be mixed in one value, and the basic format is discouraged in plain text.
If your notes involve flights and zones, see ISO 8601 for travel times and time zones.
What RFC 3339 is
RFC 3339 defines an Internet profile of ISO 8601 for timestamps in protocol events. It uses the Gregorian calendar and four-digit years. The shape is fixed:
1985-04-12T23:20:50.52Z
1996-12-19T16:39:57-08:00A full date, a T, a time with seconds, optional fractional seconds, and then an offset: either Z for UTC or +HH:MM / -HH:MM. Nothing is optional except the fraction. That strictness is the point. A program, or a person scanning a log, always knows where each part sits.
RFC 3339 vs ISO 8601: the differences
RFC 3339 is narrower in most ways. In a couple, it's looser.
| Feature | ISO 8601 | RFC 3339 | |---|---|---| | Week dates and ordinal dates | Allowed | Not part of the profile | | Durations and intervals | Allowed | Not covered | | Basic format (20261118T143000Z) | Allowed | Extended format only | | Reduced precision (2004-05) | Allowed | Full date and time required | | Local time with no offset | Allowed (ambiguous) | Offset required | | Space instead of T | Not allowed | Permitted by applications for readability | | -00:00 offset | Forbidden | Means "UTC known, local offset unknown" |
Two rows deserve a closer look. In RFC 3339, -00:00 says the UTC time is known but the local offset is not, while ISO 8601 forbids a negative zero offset. And the space-instead-of-T allowance is only for display: the RFC's grammar itself uses T. If a note might be read by another tool, use T.
Why sorting works
Both formats put the largest unit first and use fixed digit counts, so the text order matches the time order. RFC 3339 spells this out: with the same offset and the same number of fraction digits, timestamps sort correctly as plain strings.
So a plain alphabetical sort, or a text search for 2026-11, finds entries in order with no date parsing at all. It's the same idea behind date-first file names.
Offsets and pitfalls
A time with no Z and no offset is local time, and it means a different instant in different zones. MDN's reference for JavaScript dates shows how this bites: with no offset, a date-only string such as 2026-11-18 is read as UTC, while a date-time string such as 2026-11-18T14:30:00 is read as local time.
Include the offset whenever the exact moment matters. If the zone name matters too, RFC 9557 extends the format with a bracketed name, as in 1996-12-19T16:39:57-08:00[America/Los_Angeles].
Which one belongs in your notes
- Moments in time: use the RFC 3339 shape with an offset,
2026-11-18T14:30:00-05:00. AddZinstead if you want UTC. - Journal days and file names: a bare
2026-11-18is fine. It is valid ISO 8601 and sorts correctly. - Durations, weeks, ordinal dates: reach for ISO 8601 only here, for example
PT45Mor2026-W47, and only when you need them. - Avoid: basic format in plain text, local times with no offset, and
-00:00.
To generate these stamps in scripts, strftime format codes cover the date part.
Why Carets fits timestamped notes
Timestamps only help if they stay readable and searchable. Carets is a native Markdown, plain text and code editor for iOS and Mac, so a stamp like 2026-11-18T14:30:00-05:00 stays plain text in a file you own. You can organize those notes into files, projects and tags, and keep code samples in fenced blocks with syntax highlighting. It won't parse or convert time zones for you, because it's an editor, not a calendar. For logs, journals and meeting notes that sort by their own text, that's enough. Get Carets on the App Store.
Frequently Asked Questions
Is RFC 3339 the same as ISO 8601?
No. RFC 3339 is a profile of ISO 8601 written for Internet protocols. A typical RFC 3339 timestamp is also valid ISO 8601, but ISO 8601 allows many forms RFC 3339 does not, and RFC 3339 allows two things ISO 8601 does not: a space for the T, and -00:00.
Can I use a space instead of T?
RFC 3339 permits a space for readability in applications, though its grammar uses T. ISO 8601 does not allow the space. Use T if the note may be parsed by other tools.
What does -00:00 mean?
In RFC 3339 it means the UTC time is known but the local offset is not. ISO 8601 forbids a negative zero offset, so avoid it in notes.
Do I need the offset in a note timestamp?
Yes, if the time must be unambiguous. Without Z or an offset, a time is local and means different instants in different zones.