Input format property for date input (feature request)
Categories
(Core :: Layout: Form Controls, enhancement)
Tracking
()
People
(Reporter: chris, Unassigned)
Details
Reporter | ||
Comment 1•7 years ago
|
||
![]() |
||
Comment 2•5 years ago
|
||
IMHO, it would be great if the format would default to something fitting to the "lang" of the document (or the element, derived via inheritance), is this the bug for that and for implementing this, or the spec mentioned in comment #1, or should there be a separate one?
Reporter | ||
Comment 3•5 years ago
|
||
I might want the date input date format to change so that, for the same English language page, an English speaker in the USA with USA locale info would get a USA formatted date control whereas an English speaker in the UK would get a UK formatted date control.
How would you know in which language to serve your document except by using browser locale info ?
IMHO: It should fallback in this order:
- Explicit property that can be set for the control
- Explicit, cascading property that can be set for a containing element or the whole DOM
- language & locale settings from browser
Scenario : We outsource our data input for scanned documents to various Asian countries, the dates on scanned documents appear as dd/mm/yyyy so we would like the user to enter the date as dd/mm/yyyy, however the users computer have different locale to the format on the documents. We would like the to set the input format according to the original scanned document despite what the user has in the locale, to reduce the data entry errors. Currently the <INPUT type="date" /> control is unusable for our needs. :-(
Reporter | ||
Comment 5•3 years ago
|
||
Maybe this could go alongside something like this ?
https://bugzilla.mozilla.org/show_bug.cgi?id=1428553#c6
Updated•2 years ago
|
Description
•