Commit

19765c9

serious question. how do you decide which date format to use and why?

commit 19765c9

I like how @wordpress does it - it stores data format as a translate-able string, and lets translators decide on a format for a specific locale.
php
echo date( _e( 'Y-m-d' ) );
this defaults to ISO, but en_US translation can define F j, Y, en_GB - j F, Y`, etc.
Show thread
It belongs to clients as well. If users are from different countries so, it has to be based on the format of user localization.
store everything in UTC, show it in the user's timezone and locale, and when a date has to be text use Y-m-d, it's the only format that sorts correctly as plain text 🙂