this post was submitted on 30 Jun 2023
16 points (100.0% liked)
Standardization
453 readers
1 users here now
Professionals have standards! Community for all proponents, defenders and junkies of the Metric (International) system, the ISO standards (including ISO 8601) and other ways of standardization or regulation!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If the date format is not YYYY-MM-DD it can fuck right off.
My favorite thing about this date format is using it in file names. Sorting the files by name also sorts them by date.
Meeting notes 2023-06-29.txt Meeting notes 2023-06-30.txt Meeting notes 2023-07-01.txt
Thi is the way.
ISO 8601. Unironically the only ISO number I also remember.
I also remember as PHP programming language still won't do it with this function: DateTimeInterface::ISO8601 DATE_ISO8601 https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601
You need the DateTimeInterface::ISO8601_EXPANDED which can actually accept non compliant strings too.
PHP - wherever you see an intuitive solution it's wrong or has important caveats.
Everything is right about it:
for storing dates it's awesome, for displaying dates it's time to teach your programmer how to format shit for humans.