Last Updated: 2021-05-15
When in doubt, always store and transfer dates in ISO 8601, the most popular standard.
Some reasons why?
1. SQL DBs use it:
- DATE - format YYYY-MM-DD
- DATIME - format: YYYY-MM-DD HH:MI:SS
- starts off same as DB (but has a few optional extras)
YYYY-MM-DDTHH:MI:SS.MSSZ - e.g 2012-04-23T18:25:43.511Z
3. Many backend frameworks (e.g. Laravel) work out of the box with it.
e.g. you get date time validations working without any messing around