this post was submitted on 30 Jun 2023
613 points (92.7% liked)

Standardization

454 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 116 points 2 years ago (12 children)

If the date format is not YYYY-MM-DD it can fuck right off.

[–] troyunrau 36 points 2 years ago (2 children)

ISO 8601. Unironically the only ISO number I also remember.

[–] [email protected] 3 points 2 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.

load more comments (1 replies)
load more comments (10 replies)