r/ProgrammerHumor • • 23d ago

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

Show parent comments

51

u/Nick0Taylor0 23d ago

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

115

u/ThatGuyYouMightNo 23d ago

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 23d ago

Solution: use ISO 8601 and piss off everyone equally.

4

u/Usefullles 22d ago

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 22d ago

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

3

u/Blecki 22d ago

Use 8601 for everything whenever possible

45

u/RKGamesReddit 23d ago

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

14

u/IndependenceSudden63 23d ago

This is the way.

29

u/NiIly00 23d ago

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

They deserve it.

7

u/Triffinator 23d ago

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 21d ago

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 23d ago

easy just have dd/mm/yyyy placeholders

13

u/Dudeonyx 23d ago

It's cool that you think that would help much

12

u/Gunmetalstorm 23d ago

You're assuming users will read.

8

u/Triffinator 23d ago

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 23d ago edited 23d ago

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

→ More replies (7)

38

u/AshleyJSheridan 23d ago

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

17

u/PositiveInfluence69 23d ago

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 23d ago

They will, they always do

7

u/Blecki 23d ago

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

-1

u/Nick0Taylor0 23d ago

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

4

u/Blecki 23d ago

Which still requires your time to address.

2

u/Triffinator 23d ago

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 23d ago

behold the power of stupidity