You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful if the standard supported attributes to tell the browser which format to use for display of dates. In the absence of such attributes, browsers use whatever locale information is available to for showing the date, making it impossible for developers of web pages to assume that the display will be consistent across all browsers, and thus making it more difficult to provide simple, clear documentation of those web pages. I have customers who would like dates to be displayed using the standard ISO format, to eliminate any possible confusion or ambiguity about which portion of the displayed value represents the month, and which portion represents the day of the month, but standard HTML markup doesn't support that. Introduction of sequence and separator attributes (possibly with different names to anticipate naming conflicts) would make it possible to do what our customers want without relying on convoluted JavaScript code. For example:
<input type="date" sequence="ymd" separator="-">
The text was updated successfully, but these errors were encountered:
It would be helpful if the standard supported attributes to tell the browser which format to use for display of dates. In the absence of such attributes, browsers use whatever locale information is available to for showing the date, making it impossible for developers of web pages to assume that the display will be consistent across all browsers, and thus making it more difficult to provide simple, clear documentation of those web pages. I have customers who would like dates to be displayed using the standard ISO format, to eliminate any possible confusion or ambiguity about which portion of the displayed value represents the month, and which portion represents the day of the month, but standard HTML markup doesn't support that. Introduction of
sequence
andseparator
attributes (possibly with different names to anticipate naming conflicts) would make it possible to do what our customers want without relying on convoluted JavaScript code. For example:The text was updated successfully, but these errors were encountered: