r/ProgrammerHumor • • Oct 13 '26

Meme chaoticEvil

Post image
3.4k Upvotes

262 comments sorted by

View all comments

Show parent comment

4

u/ClockificThrowaway Oct 13 '26

Just don’t let them type anything but the exact number of digits you want? My online bank does it well, they even backfill a 0 if you type 7, because that could only be 07, when typing month/year.

4

u/themightyug Oct 13 '26

month and day can be wrong way round too (thanks Americans!) and you can't even tell when the day <= 12

4

u/ClockificThrowaway Oct 13 '26

That’s why you either use a drop down box, or have a rendered date under the entry boxes that spell it out (11. Jan 1999).

In my online bank’s case, it shows “MM/YY” above two text boxes []/[].