7 ms·
> There are hundreds of ways that different websites ask you to pick dates Ugh, date pickers. So many of these violently throw up when I try to do the obvious
by teeray 6mo ago
> There are hundreds of ways that different websites ask you to pick dates
Ugh, date pickers. So many of these violently throw up when I try to do the obvious thing: type in the damn date. Instead they force me to click through their inane menu, as if the designer wanted to force me into a showcase of their work. Let your power users type. Just call your user’s attention back to the field if they accidentally typed 03/142/026.
- nkrisc 6mo agoIs 03/04/2026 March 4th or the 3rd of April? If you have an international audience that’s going to mess someone up. Better yet require YYYY-MM-DD.
- andai 6mo agoI've seen some that had a drop-down for the month name. But since it was native, I could type the month name and my browser selected the right one.
- anamexis 6mo agoOr: - Use localization context to show the right order for the user - Display context to the user that makes obvious what the order is - Show the month name during/immediately after input so the user can verify
- cush 6mo agoThis has a solved problem for a long time
- RobotToaster 6mo ago<input type="date"> is automatically formatted based on the user's locale.
- 8organicbits 6mo agoThis is still a partial solution as the user needs to know that their locale is being used and know how their locale is configured to understand the format. This is most problematic on shared computers or kiosks, especially when traveling.
- stephbook 6mo agoI don't even know my locale. Is is the device display language, the keyboard input language, my geo location, my browser language, my legal location, my browser-preferred website language, the language I set last time, the language of the domain (looking at amazon.co.uk), the language that was auto-selected last time for me on mobile or... something else entirely?
- vladvasiliu 6mo agoExactly. Under Windows, this isn't even consistent across applications. I'm in France, with the location set to France, using English display language and "English (Europe)" formatting. This means that the expected date is DD/MM/YYYY. It's what shows up in the taskbar, for example. But many applications seem to do this based on language, so I sometimes get MM/DD/YYYY. I don't normally run Windows, so I can't check right now, but I think it's mostly "modern" applications that mess this up. Like the MS Store, Teams (obviously).
- p-t 6mo agothe only locale i know about is the windows one that's hidden in some menu that i had to set to japan to get some random application to run, and now all of my backslashes look like yen symbols :P ... maybe i won't get mm/dd/yyyy now!
- embedding-shape 6mo agoI mean, once in a different country, you either experience the locale shock once then adapt, or you've seen it before and kind of know what to expect. And for the rest of the users who have no idea about locales, using whatever locale they have on their computer might be technically incorrect for some of them, but at least they're somewhat used to that incorrectness already, as it's likely been their locale for a while and will remain so.
- suzzer99 6mo agoInput type=date also just saves the day, month and year with no timezone information, which makes sense since the widget doesn't show any and context determines if the date should be in the user's timezone or a fixed timezone (like an event start date or a flight departure). But if you don't immediately convert that date to an ISO date and instead save it to the DB as yyyymmdd, you're in for a world of hurt trying to display date/times throughout the site. I inherited a project like this and have spent countless hours wrestling with nightmare timezone issues.
- Findecanor 6mo agoThat can get messy and confusing if the user's locale is different from the language of the web page. When I write in English, I of course also want to edit dates and numbers using English conventions. But instead, I am forced to use decimal comma and day/month order because those are the default locale for Swedish, which is my default locale. I have never encountered an OS that doesn't work that way. On the web you'll often don't know: it could be anything.
- microsoftedging 6mo agoIso 8601![0] [0] https://en.wikipedia.org/wiki/ISO_8601 https://en.wikipedia.org/wiki/ISO_8601
- hn_throwaway_99 6mo ago> Better yet require YYYY-MM-DD This is the equivalent of requiring all your text to be in Esperanto because dealing with separate languages is a pain. "Normal" people never use YYYY-MM-DD format. The real world has actual complexity, tough, and the reason you see so many bugs and problems around localization is not that there aren't good APIs to deal with it, it's that it's often an after thought, doesn't always provide economic payoff, and any individual developer is usually focused on making sure it "looks good" I'm whatever locale they're familiar with.
- computerfriend 6mo agoIt's normal in Asia.
- FinnKuhn 6mo agoI'm not in Asia though. It's also normal to speak Chinese in China. That doesn't mean that I should be speaking Chinese as well.
- computerfriend 6mo ago> "Normal" people never use YYYY-MM-DD format. My point was that this isn't true.
- Findecanor 6mo agoAnd Sweden. And probably lots of other countries too. It's a world standard, and there are very few places that use hyphens in dates that are not ISO dates.
- JoshTriplett 6mo agoAs they type it, start displaying what it is. If, as you type "03/", it says "March", and that's not what you want, you now know what format it wants. (And yes, always accept YYYY-MM-DD format, please.)
- masswerk 6mo agoAh, the MS Word experience: User enters German date "1. April" MS Word: new ordered list with item "April" User furiously hits delete key.
- JoeyJoJoJr 6mo agoA partial solution is to put DD/MM/YYYY (or the appropriate format) as the input placeholder. You could also display the format as a tooltip when the input field is focused. IMO this is better than dealing with date pickers.
- paulmooreparks 6mo agoJust spell the month. https://parkscomputing.com/page/just-spell-the-month https://parkscomputing.com/page/just-spell-the-month
- parpfish 6mo agoI hate how scrolling through a list of years to enter my birthday forces me to confront my mortality
- SoftTalker 6mo agoI hate how websites that are trying to verify my age make me scroll through 13, 18, or 21 years that I could not legitmately select if I want to use the site.
- el_benhameen 6mo agoNo no, I find that having to click back through almost 40 years’ worth of months to get to my birthday allows for a nice pause to consider the fleeting and ever-accelerating nature of life.
- poolnoodle 6mo agoYou can usually click the year and then pick that first. But the fact that so many people don't instantly get that shows how poorly designed it is.
- JoshTriplett 6mo ago> You can usually click the year and then pick that first. Even then, clicking the year will often lead to a tiny one-page list of 10 years, which you can either page back in or click the decade to get shown a list of decades to pick from. So: click 2026, click 2020s, click 19XXs, click a year, click a month, click a birthday. Such an interface makes at least some sense for "pick a date in the near future". When I'm booking an airline flight, I usually appreciate having a calendar interface that lets me pick a range for the departure and return dates. But it makes no sense for a birthday.
- grishka 6mo agoAnd even when they let you type it in, sometimes it turns out that the website was made by Americans and so expects the bonkers date format of MM/DD/YYYY. A good example of appropriate use of a calendar interface on a flight booking website is Aviasales. They show flight prices for each day right there, so if your travel dates are flexible, you know when it's cheaper by just looking at it! This should be a standard feature.
- kjkjadksj 6mo agoMost of these I just say I am 200 years old or so.
- FergusArgyll 6mo agoThere's a small rental car company I use sometimes whos date picker is meant for phones and you have to "grab" the wheel and push it up / down do get to your date
- suzzer99 6mo agoDate pickers are the absolute worst. It blows my mind we don't have a clean standard by now. The best is when a site uses the exact same date picker for birthdate as for some date in the future. Yes, I'd love to click backward 50 years to get to my birthdate. Thank you for reminding me how old I am.
- wky 6mo agoRelatedly, scrolling time pickers are also a toss up on mobile. Sometimes a single swipe on the minutes gets you from 12:00pm to 11:50am, sometimes it doesn’t. I wish the analog clock picker where two quick taps set the hours and minutes (and one more tap for am/pm) was more common.