Why ISO 8601
Is 03/04/2027 the third of April or the fourth of March? It depends on who wrote it. ISO 8601 removes the guesswork by always writing the largest unit first: year, month, day, then hours, minutes and seconds. 2027-04-03 can only mean one day, and dates written this way sort correctly as plain text.
A time can end with an offset from UTC, such as +05:30, or with Z for UTC itself. Without an offset it is a local time, and you need to know the place to turn it into an exact moment.
Basic and extended formats
The extended format uses separators (2027-04-03T14:05:00Z) and is easier to read. The basic format drops them (20270403T140500Z) and is common in file names and some protocols. Both are valid, but one value shouldn’t mix the two.
Weeks and ordinal dates
ISO weeks start on Monday, and week 1 is the week that contains the first Thursday of the year. So 1 January can belong to week 52 or 53 of the previous year. Ordinal dates count days from the start of the year: 2027-093 is the 93rd day.
