CodaChroma@lemmy.world to Standardization@sh.itjust.worksEnglish · 1 year agoWow! It actually makes sense!i.imgur.comimagemessage-square46fedilinkarrow-up121arrow-down10
arrow-up121arrow-down1imageWow! It actually makes sense!i.imgur.comCodaChroma@lemmy.world to Standardization@sh.itjust.worksEnglish · 1 year agomessage-square46fedilink
minus-squareCyrus Draegur@lemm.eelinkfedilinkEnglisharrow-up5·1 year agoIf the date format is not YYYY-MM-DD it can fuck right off.
minus-squareTroy@lemmy.calinkfedilinkEnglisharrow-up2·1 year agoISO 8601. Unironically the only ISO number I also remember.
minus-squaremattaw@sh.itjust.workslinkfedilinkEnglisharrow-up1·1 year agoI 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.
minus-squareBoreal@sh.itjust.workslinkfedilinkEnglisharrow-up2·1 year agoMy 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
minus-squaretwo_wheel2@lemm.eelinkfedilinkEnglisharrow-up1·1 year agoEverything is right about it: Lexographic sort Unambiguous months and days Acceptable on any document of record (lab, legal, medical, personal) Readable by nearly any culture (even us Americans)
minus-squarekamenoko@sh.itjust.workslinkfedilinkEnglisharrow-up0·1 year agofor storing dates it’s awesome, for displaying dates it’s time to teach your programmer how to format shit for humans.
If the date format is not YYYY-MM-DD it can fuck right off.
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.
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.
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.