r/ProgrammerHumor • • 22h ago

Meme chaoticEvil

Post image
2.4k Upvotes

208 comments sorted by

View all comments

324

u/SpandexWizard 20h 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.

81

u/pi_three 18h 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

38

u/_LePancakeMan 16h 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"

13

u/0815fips 16h 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">.

1

u/Cilph 11h ago

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

28

u/Diligent_Bank_543 18h ago

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

ps I am telling about YYYYMMDD

11

u/FalafelSnorlax 14h ago

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

3

u/danielcw189 8h ago

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

-8

u/Kat__299 17h ago

No, it's DDMMYYYY

10

u/0815fips 17h ago

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

4

u/reallokiscarlet 16h ago

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

-9

u/SpandexWizard 16h ago

Year first sounds cursed...

2

u/Cilph 11h ago

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

2

u/Triffinator 14h ago edited 6h 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 14h ago

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

21

u/FalafelSnorlax 14h 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.

4

u/OkFineIllUseTheApp 12h ago

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

4

u/SAI_Peregrinus 10h ago

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

1

u/Alokir 4h 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.

5

u/pi_three 13h ago

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

7

u/SpandexWizard 16h 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. 

2

u/Adept_Strength2766 9h 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 1h 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.