▲ | senfiaj 5 days ago | ||||||||||||||||
Every time I see an input date string in XX/XX/YYYY format I get a micro PTSD flashback. This cannot be parsed reliably and is locale dependent. The standard date format is YYYY-MM-DD (it's also the date part of the ISO time format). Raw text inputs should be avoided as much as possible, date/time pickers should be preferred. | |||||||||||||||||
▲ | hanche 5 days ago | parent | next [-] | ||||||||||||||||
Even worse with just two digits for the year! 01/02/03 could be 1 Feb 2003, or 2 Jan 2003, or 3 Feb 2001. Let’s just be thankful no one ever uses any of remaining three permutations. | |||||||||||||||||
| |||||||||||||||||
▲ | dragonwriter 5 days ago | parent | prev [-] | ||||||||||||||||
> The standard date format is YYYY-MM-DD (it's also the date part of the ISO time format) Strictly, it is the extended form of the ISO 8601 calendar date format. (The basic format has no separators.) ISO 8601 allows any of its date formats (calendar date, week date, or ordinal date) to be combined with a time representation for a combined date/time representation, it is inaccurate both to call any of the date formats part of the time format, and to call the calendar date format the format that is part of the combined date/time format. (There's a reason why people who want to refer to a simple and consistent standard tend to choose RFC-3339 over ISO 8601.) |