3 ms·
Why ISO? JavaScript has had a Date type since forever.
by skrebbel 10y ago
Why ISO? JavaScript has had a Date type since forever.
- TeMPOraL 10y agoSo Date type, then, but if we're talking input fields, they're also meant to be used with forms submitted without all that JavaScript cruft on top. So if you have to convert the date input to text for sending (or direct retrieval in code), I'd say just stick to ISO. Why? Because it's a standard.
- skrebbel 10y agoAhyes, I'm so stuck in JS-o-world that I forgot there's an actual text format called HTML. Thanks :-)