4 ms·
> Can you elaborate on what you mean by date ordering? day/month/year month/day/year year/month/day year/day/month The order of the numbers an be problemat
by mellavora 4y ago
> Can you elaborate on what you mean by date ordering?
day/month/year
month/day/year
year/month/day
year/day/month
The order of the numbers an be problematic. For example, 01/01/01 could be 1 Jan 2001, Jan 1 2001, 01 1 jan, or 01 jan 1.
Would rather not do the april fools example. Or the pi day example.
- deleted 4y ago[deleted]
- moritzwarhier 4y agoAll of this is thankfully resolved by the spec choice to stick to a specific ISO string format for the value property. You are talking about locale-dependent formats - which is why the value property of the input element conforms to ISO 8601 YYYY-MM-DD and guarantees that the values are predictably sortable. There is no other meaningful ordering of dates other than sorting chronologically. HTMLInputElement with type=date honestly does everything right given the constraints. As said, this post is a valid complaint about mobile native UI, no less no more.