ISO 8601 Formatting Guide

ISO 8601 is the international standard for representing dates and times. It is unambiguous, naturally sortable, and should be the only format used in APIs and JSON payloads.

Format Example Description
Date only2024-03-15Standard YYYY-MM-DD
UTC Time2024-03-15T14:30:00ZThe 'Z' indicates UTC (Zulu time)
Local Time with Offset2024-03-15T09:30:00-05:00Explicitly showing the offset from UTC
Week Date2024-W11-5Year 2024, Week 11, Day 5 (Friday)
Ordinal Date2024-075The 75th day of 2024