YYYY-MM-DD — ISO 8601 date (YYYY-MM-DD)
Pattern YYYY-MM-DD · e.g. 2024-06-29
About this format
- Fields
- Year, Month, Day
- Clock
- Date only
- Carries a time zone
- No — it names a calendar day, not a moment: the same date starts at a different instant in every zone
- Typically seen in
- HTML date inputs, SQL DATE columns, JSON APIs (date-only fields), File names and logs
Sample values
- 2026-06-29
- 2028-02-29
- 1970-01-01
Rules and pitfalls
- The calendar-date form of ISO 8601 (extended format) and of RFC 3339's full-date: a four-digit year, then a two-digit month and day, joined by hyphens. The biggest unit comes first, so the text sorts in date order.
- There is no day/month doubt: 2026-03-04 can only be 4 March 2026, unlike 03/04/2026.
- A date is a day, not a moment. Turning 2026-03-08 into a timestamp needs a time of day and a zone; the tools on this site ask you to choose start of day or noon and never assume midnight silently. Rewriting it as another date format needs no choice.
- JavaScript reads new Date("2026-03-08") as midnight UTC but new Date("2026-03-08T00:00") as local midnight, so the date-only form can show the previous day in zones west of UTC.
- Strict: 2026-02-30 and 2026-13-01 are refused, as are 2026-3-8 (no zero padding), the basic form 20260308 and two-digit years.
Convert YYYY-MM-DD to and from other formats
Choose any of the 22 other formats above, or swap the direction. The free converter recognises YYYY-MM-DD values automatically and reads 82 formats across time zones; the file workspace converts a whole CSV column.