r/ProgrammerHumor • • Oct 13 '26

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

Show parent comment

51

u/Nick0Taylor0 Oct 13 '26

How does a user fuck up a properly validated input field that goes along with the date picker?

115

u/ThatGuyYouMightNo Oct 13 '26

Two users want to enter October 12th. One enters 12/10/2026, the other enters 10/12/2026. One of them gets pissy when it comes up as December 10th.

25

u/coderman64 Oct 13 '26

Solution: use ISO 8601 and piss off everyone equally.

4

u/Usefullles Oct 14 '26

Won’t this just be an inverted DDMMYYYY format in most cases? Like, what’s so different between the DDMMYYYY and YYYYMMDD formats? In cases where you don’t need to take hours and minutes into account, of course.

8

u/coderman64 Oct 14 '26

One of the major advantages is that if you sort YYYYMMDD in order by numerical value, it also sorts by date.

3

u/Blecki Oct 14 '26

Use 8601 for everything whenever possible

45

u/RKGamesReddit Oct 13 '26

I see sites use three different fields just to eliminate the problem

14

u/IndependenceSudden63 Oct 13 '26

This is the way.

29

u/NiIly00 Oct 13 '26

Solution: Ignore everyone that uses the moronic format mm/dd/yyyy.

They deserve it.

7

u/Triffinator Oct 13 '26

Very true. It's programmatically (and human) parseable if the middle column exceeds 12, but fails the second you are lower than 13. It also happens to work out on any dates with matching day and month.

Like, is 10/12 December 10th or October 12th?

1

u/Crash_Logger Oct 15 '26

And then I try to input 2026-10-12 and get pissy when the UI re-writes it as 20/2/6

0

u/pjkm123987 Oct 13 '26

easy just have dd/mm/yyyy placeholders

13

u/Dudeonyx Oct 13 '26

It's cool that you think that would help much

12

u/Gunmetalstorm Oct 13 '26

You're assuming users will read.

8

u/Triffinator Oct 13 '26

Can confirm. A website we host at work is used by about 100k people a year. It used to require a date to be entered in a text box. The text box had placeholder text and was validated to support DD/MM/YYYY format. An error message would spell this out to you.

We got many support calls because people couldn't use it and when we find out why, they had decided to enter the date in another format and wouldn't read the error or placeholder text. We changed to a date picker and the complaints went away.

-6

u/Nick0Taylor0 Oct 13 '26 edited Oct 13 '26

Which is super easy to fix by using the browsers selected date formatting

→ More replies (7)

38

u/AshleyJSheridan Oct 13 '26

It doesn't help that one particular country in the world uses a weird date format...

17

u/PositiveInfluence69 Oct 13 '26

Right smallest to biggest

Only 12 months (smallest number)

At least 28 days (middle number)

So many years. Nobody can count that high.

👌 /s

11

u/Gilgame4 Oct 13 '26

They will, they always do

7

u/Blecki Oct 13 '26

Sometimes they just open a ticket because their poorly formatted date won't validate instead of understanding and correcting the problem

-1

u/Nick0Taylor0 Oct 13 '26

Which is closed as working as intended or if their formatting is actually decently common added as accepted input

4

u/Blecki Oct 13 '26

Which still requires your time to address.

2

u/Triffinator Oct 13 '26

Depending on how users raise issues matters, too.

We had an appointments booking website that took a strict date format from a text box. Users would expect that they could enter anything. They would fight the system and then call our call centre (who are an alternative to making bookings online, not a tech call centre) to complain. The call centre would always side with the clients and send the issue through to us. We would then have to work out what they had done and come to the conclusion that the date was input incorrectly.

Eventually, we just made the call centre start troubleshooting, but the clients would insist they had done everything right and couldn't work out what was happening, so the emails from the call centre continued. The call centre - being more client focused - we're constantly asking things like "how is this not fixed yet?" And had demonstrated lowered trust in IT from this. It wasn't actually broken, people just refused to learn how to enter a date in an expected way.

Adding a date picker fixed that.

3

u/NickWrigh Oct 13 '26

behold the power of stupidity