▲ 8 ▼ Wow! It actually makes sense! (i.imgur.com) submitted 3 years ago by CodaChroma@lemmy.world to c/standardization@sh.itjust.works 25 comments fedilink hide all child comments
[–] Draegur@lemm.ee 3 points 3 years ago (4 children) If the date format is not YYYY-MM-DD it can fuck right off. permalink fedilink source hideshow 8 child comments replies: [–] Boreal@sh.itjust.works 1 point 3 years ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Hamartiogonic@sopuli.xyz 1 point 2 years ago Thi is the way. permalink fedilink source parent [–] two_wheel2@lemm.ee 1 point 3 years ago Everything 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) permalink fedilink source parent [–] troyunrau@lemmy.ca 0 points 3 years ago (1 child) ISO 8601. Unironically the only ISO number I also remember. permalink fedilink source parent hideshow 2 child comments replies: [–] mattaw@sh.itjust.works 1 point 3 years ago 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. permalink fedilink source parent [–] kamenoko@sh.itjust.works 0 points 3 years ago for storing dates it's awesome, for displaying dates it's time to teach your programmer how to format shit for humans. permalink fedilink source parent
[–] Boreal@sh.itjust.works 1 point 3 years ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Hamartiogonic@sopuli.xyz 1 point 2 years ago Thi is the way. permalink fedilink source parent
[–] two_wheel2@lemm.ee 1 point 3 years ago Everything 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) permalink fedilink source parent
[–] troyunrau@lemmy.ca 0 points 3 years ago (1 child) ISO 8601. Unironically the only ISO number I also remember. permalink fedilink source parent hideshow 2 child comments replies: [–] mattaw@sh.itjust.works 1 point 3 years ago 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. permalink fedilink source parent
[–] mattaw@sh.itjust.works 1 point 3 years ago 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. permalink fedilink source parent
[–] kamenoko@sh.itjust.works 0 points 3 years ago for storing dates it's awesome, for displaying dates it's time to teach your programmer how to format shit for humans. permalink fedilink source parent