logoalt Hacker News

nkrisctoday at 2:41 PM5 repliesview on HN

Is 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.


Replies

RobotToastertoday at 4:08 PM

<input type="date"> is automatically formatted based on the user's locale.

show 1 reply
microsoftedgingtoday at 4:57 PM

Iso 8601![0]

[0] https://en.wikipedia.org/wiki/ISO_8601

anamexistoday at 3:12 PM

Or:

- 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

andaitoday at 2:46 PM

I'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.

cushtoday at 3:24 PM

This has a solved problem for a long time