this post was submitted on 15 Aug 2025
793 points (98.4% liked)

Programmer Humor

25755 readers
1313 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] absentbird@lemmy.world 21 points 1 day ago (25 children)

ISO 8601 is YYYYMMDD (or YYYY-MM-DD in extended format)

Are you really going to wood chipper someone for leaving off the leading 20? I think we can safely infer the century and millennium with a high confidence, why not trade them for two extra name characters?

[–] shnizmuffin@lemmy.inbutts.lol 23 points 1 day ago (17 children)

As an old person who has archives dating back to the 90s, yes.

[–] absentbird@lemmy.world 4 points 1 day ago (8 children)

Here you go gramps:

(shortD) => {
    return parseInt(shortD.slice(0, 2), 10) > 50 ? "19" + shortD : "20"+shortD;
}
load more comments (15 replies)
load more comments (22 replies)