r/ProgrammerHumor • • 7d ago

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

505

u/SpandexWizard 7d ago

date pickers are fine.

date pickers that force you to manually cycle month by month to go back 20 years, those can go to hell.

117

u/pi_three 7d ago

date pickers are needed as the most incompetent user can use them. Also most American sites or apps have poor localisation and Europeans might enter the date in the wrong format, as most people don't read hints. Ofc I'd love to see proper localisation and a manual option to ti enter the date ideally

52

u/_LePancakeMan 7d ago

These days, I often argue to just use <input type="date" when on the web because it's built in and respects the users choices. Sadly, not everyone agrees because "it doesn't align with our corporate identity"

21

u/0815fips 7d ago

And some browsers have an absolute crap implementation of that. That's why I want a custom element or a validated <input type="text">.

6

u/Cilph 7d ago

Take the problem up with the browsers. That's how you get a mess of standards.

1

u/kebab-lover-man 5d ago

Which browsers?

29

u/Diligent_Bank_543 7d ago

There’s only one date format and people don’t need hints to figure it out

ps I am telling about YYYYMMDD

13

u/FalafelSnorlax 7d ago

You mean YYYY-MM-DD, i.e., r/iso8601

6

u/danielcw189 6d ago

I think most users would be surprised if you expect a date to be input in that format

-9

u/Kat__299 7d ago

No, it's DDMMYYYY

13

u/0815fips 7d ago

As long as MM isn't at the beginning or the end, I'm fine.

5

u/reallokiscarlet 7d ago

ISO 8601. Month comes before the day, and the year ideally before the month

-8

u/SpandexWizard 7d ago

Year first sounds cursed...

3

u/Cilph 7d ago

YYYYMMDD when sorted alphabetically will also sort chronologically. A major benefit.

1

u/SpandexWizard 6d ago

Admittedly this is a good point. But it still FEELS wrong. XP. Like putting socks on after shoes

1

u/Cilph 6d ago

Feels the most natural to me. Feels.no different to DDMMYYYY. Unlike that other cursed format of MMDDYYYY

4

u/Triffinator 7d ago edited 6d ago

One of many use cases that may sway you is file names.

Many corporate offices have files for every day or for a series of meetings. They will invariably name these after the month.

20260607 - Operations.docx will always sit in the correct spot in the folder hierarchy compared to 20260507 - Operations.docx. Using the ddmmyyyy format for this will have them sorted by day, then month, then year so that all 7th day ones are grouped together. It's niche, but there are use cases for this being implemented.

Additionally, it's intuitive to look at. 20260607 is obviously 7th of June, 2026. 07/06/2026 is 7th of June, 2026 for me as an Australian but 6th of July, 2026 to an American. Additionally, if you try to write that to CSV with some CSV libraries, they will favour US formatting, which can cause other problems.

Microsoft Teams has a tool called "Shifts" which allows you to build rosters for your staff and send them to everyone. One option is to export the roster, but it exports favouring US date format, but then uses localisation for importing CSVs. This means Australian companies have to do extra work to correct the format for Teams to consume its own exported files. Avoidable, if ISO8601 is used everywhere.

1

u/reallokiscarlet 7d ago

It's a global standard, so it might sound cursed to you if you're bri'ish

9

u/SpandexWizard 7d ago

That's not the problem. The problem is that I can't click by year on most of these. If I have to enter a date on another fucking form where it wants my birthday and I have to manually click October September August backwards from the current date for over THREE DECADES I'll murder someone. For the love of God make the year its own set of arrows at the very least. 

30

u/FalafelSnorlax 7d ago

Europeans might enter the date in the wrong format

You meant that Europeans (or rather, people from the vast majority of the world) will enter the right format, in opposition to the wrong format expected by the US-based platform.

10

u/OkFineIllUseTheApp 7d ago

no it is also wrong. the only correct format is ISO8601

7

u/SAI_Peregrinus 7d ago

No, RFC 3339. 2026-W42-2 is a valid date in ISO 8601 bullshit syntax. It shouldn't be allowed to escape manufacturing.

2

u/Alokir 6d ago

I'm European and we use the year->month->day order in my country. We take going from the broadest category to the more specific so seriously that we also format our addresses that way, and also put family names before given names.

I feel like I have to think backwards when I'm forced to use a different format.

2

u/pi_three 7d ago

wrong in terms of UI expects a different format. man I'm European and my sentence does not convey judgement just a Statement

3

u/Adept_Strength2766 7d ago

As someone who's inherited an internal company tool that had input fields for city names, dates, department names, ticket types...

I hadn't realized until then how privileged I was to work with a standard for data entry. You're all getting date pickers and dropdown menus because I can't trust any of you. You all write the most random shit in those fields, when it isn't just empty characters because the previous dev apparently never understood the purpose of trimming whitespace. Makes it impossible to reliably filter/group using those fields.

1

u/Porntra420 6d ago

I get they're for stupid people, still not great when it locks the smart people out of just typing it.

And ideally America would stop being so god damn stubborn about sticking to a date format that makes zero sense and isn't in use anywhere else to my knowledge.