3 ms·
We must be miscommunicating again or I'm being dimmer than usual, because when I read the spec and the MDN page I don't see any way of forcing the display forma
by yyyk 5y ago
We must be miscommunicating again or I'm being dimmer than usual, because when I read the spec and the MDN page I don't see any way of forcing the display format (pattern attribute exists only for browsers which do not understand the picker).
I see 'browser will autodetect the right display format for the locale and give back YYYY-MM-DD' in so many words, which would be nice if it worked. The problem being it not actually working and not allowing me any good way to override it when it doesn't work.
To be sure I wasn't imagining things, I decided to test again, with the simplest example I could find on the net (I forget w3schools still exists).
https://imgur.com/a/XQWOfBk https://imgur.com/a/XQWOfBk
Note the date format on the picker. I can assure the test system used had LANG, LC_TIME, LC_ALL, timezone, etc. all set to a non-American locale. I used Chromium to make sure this is on a typical(ish) browser. Still the MM/dd/YYYY format is used.