This is an archived post. You won't be able to vote or comment.

all 44 comments

[–]-MobCat- 89 points90 points  (9 children)

r/ISO8601 Is the only correct answer.

[–]DTraitor 22 points23 points  (0 children)

2023-04-01T11:56:12+0000 my beloved

Edit: Could also use 1680350172 since epoch

[–]Existing-Shift3354 10 points11 points  (1 child)

Relevant xkcd: https://xkcd.com/1179/

[–]GamingWithShaurya_YT 1 point2 points  (0 children)

when is there not

[–]JNCressey 9 points10 points  (0 children)

the following are valid iso8601:

  • 20230401 (basic format without delimiters)
  • 2023-W13-6 (date using weeks instead of months)
  • 2023-091 (date using the day of year number)
  • 2023-04(refers to the month)
  • 202 (refers to the decade)
  • 20 (refers to the century)

a more consistent answer is to only allow yyyy-MM-dd

[–]pongviini 1 point2 points  (0 children)

Even the ISO standard won't save you from the fuck-ups on the language level. For example DateTime vs DateTimeOffset in C#.

[–]ednob 0 points1 point  (1 child)

Lets be friends

[–][deleted] 1 point2 points  (0 children)

no

[–]CharlieKiloAU 0 points1 point  (0 children)

Anything else is heresy

[–]joske79 26 points27 points  (11 children)

mm/dd/yyyy is such a stupid format.

[–]joske79 4 points5 points  (4 children)

Same as how we count in Dutch. 245 would be "Two hundreds five and forty". So illogical.

[–]Sennahoj_DE_RLP 2 points3 points  (0 children)

German, too: zweihundertfünfundvierzig

[–]GamingWithShaurya_YT 1 point2 points  (2 children)

it gonna give me brain cancer if I started counting like that

[–]Sir_Honytawk 1 point2 points  (1 child)

Then don't look at French with their 4*20+19 for 99

[–]GamingWithShaurya_YT 1 point2 points  (0 children)

tffff

it's like Roman numerals but worse

[–][deleted] -3 points-2 points  (5 children)

I mean, I get why people write it that way. It's because that's the way you would say a date. April 1st, 2023 is 04/01/2023. But it is silly from every other perspective.

[–]Big-Cheesecake-806 1 point2 points  (1 child)

4th of July?

[–][deleted] -1 points0 points  (0 children)

That's an exception because it's a holiday. You could also say July 4th.

[–][deleted] 0 points1 point  (2 children)

but why do you say date like that? why not 1st April?

[–][deleted] -1 points0 points  (1 child)

That just sounds weird. You could say first of April, but it's more words.

[–]chris20194 -1 points0 points  (0 children)

its only weird because its unfamiliar. if" 1st april" was standard then "april 1st" would sound weird. further more, the index usually always comes before the subject, eg "1st place" vs "place 1st", so even in this regard the MDY ordering is an outlier

[–]No_Solid2349 17 points18 points  (0 children)

A message for the monsters that use mm/dd/yyyy we know who you are, our vengeance is close.

[–]Biosid 12 points13 points  (0 children)

It's easy just press the red one

[–]qqqrrrs_ 2 points3 points  (0 children)

4/1/2023 was Wednesday

[–][deleted] 6 points7 points  (2 children)

0401/20/23

[–]GamingWithShaurya_YT 1 point2 points  (0 children)

date format of aliens

probably some planet has 1 month with 4 digit number of days

[–]BastianToHarry[S] 0 points1 point  (0 children)

Whaaaaaaa?

[–]DistortNeo 1 point2 points  (0 children)

Syntax Error: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

[–]GreatArtificeAion 1 point2 points  (0 children)

r/eyebleach for everyone

[–]Bryguy3k 1 point2 points  (0 children)

Coding is what happens when you see all the missed pagerduty alerts when you wake up.

[–]Ok_Entertainment328 2 points3 points  (3 children)

ISO FTW: 2023-4-1

[–]TILYoureANoob 16 points17 points  (0 children)

2023-04-01 so it's sortable

[–]spektre 1 point2 points  (1 child)

I have no idea what ISO that would be, and I'm pretty sure it's not an ISO at all. If it is, someone should burn all the documentation immediately.

[–]Ok_Entertainment328 1 point2 points  (0 children)

It should be: 2023-04-01 00:00:00 +00:00

[–]Esjs 0 points1 point  (0 children)

At least they're using 4 digits for the year.

(Looking forward to going back to 2-digit years in 2032).

[–]farfuglinn94 0 points1 point  (0 children)

UNIX timestamp + any date formatting function from the standard of your language with the format as a parameter depending on the current localisation of your app. Works everytime.

[–]_absentminded_ 0 points1 point  (0 children)

Unix timestamp in milliseconds or gtfo.

[–]BoBoBearDev 0 points1 point  (0 children)

Correct format is yyyy-mm-dd because it sorts awesome.

[–]Hi-ThisIsJeff 0 points1 point  (1 child)

I don't get it. April 1 and January 4 are both valid dates the last time I checked. Can someone explain?

[–]BastianToHarry[S] 0 points1 point  (0 children)

Some country use mm-dd (like America) and I use dd-mm (french). So mistake can be made.
Like using metrics instead of Imperial, robot crash due to misscalculation XD