Standardized Date Format
ISO 8601
- Definition
- A standardized representation of calendar dates
How does it work?
The world has several ways of formatting dates: 31-06-2024, 06/31/24. Some date are ambiguous when the locale is unknown (i.e. 06/07/07). ISO-8601 is an effort to create a standard way of storing dates: YYYY-MM-DD.
An example:
1997-07-16
When should you use it?
Always store dates in a fixed format. ISO 8601 is a good standard to do this.