3 ms·
Probably the wrong place to ask... Why does <input type=date> display the field in format MM/DD/YYYY in the field but the value property is formatted in YYYY-M
by yahelc 14y ago
Probably the wrong place to ask...
Why does <input type=date> display the field in format MM/DD/YYYY in the field but the value property is formatted in YYYY-MM-DD?
Is the former a localization setting and the latter the standardized format? Is there any customization available? Also, no input[placeholder] support.
Example: http://jsfiddle.net/dUc5V/3/ http://jsfiddle.net/dUc5V/3/
- icebraining 14y agoIt's probably localization, yes, since to me it shows up as DD-MM-YYYY.
- TazeTSchnitzel 14y agoIt displays based on locale. YYYY-MM-DD is the ISO Standard[1], which is also used in ES5 as the standard date/time representation. [1]http://en.wikipedia.org/wiki/ISO_8601 http://en.wikipedia.org/wiki/ISO_8601