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
The US date format is ambiguous for dates with day <=12 && day !== month.
05/02/2016 could be read as either May 2nd, or Feb 5th.
I'm thinking ISO8601 (YYYY-MM-DD) would be a good default as it works everywhere, and doesn't have the localisation issues that moving to a short-month-name default (e.g. "2 May 2016") would bring.
Admittedly most users will want to change the date format through the provided hook, but a sensible default would be... sensible.
Happy to create a PR.
The text was updated successfully, but these errors were encountered:
mbrookes
changed the title
DatePicker shouldn't use DD/MM/YYYY by default.
DatePicker textfiled value should follow ISO8601 be default
Jan 19, 2016
mbrookes
changed the title
DatePicker textfiled value should follow ISO8601 be default
DatePicker textfiled value should follow ISO8601 by default
Jan 19, 2016
mbrookes
changed the title
DatePicker textfiled value should follow ISO8601 by default
DatePicker textfiled value should follow ISO 8601 by default
Feb 2, 2016
The US date format is ambiguous for dates with
day <=12 && day !== month
.05/02/2016 could be read as either May 2nd, or Feb 5th.
I'm thinking ISO8601 (YYYY-MM-DD) would be a good default as it works everywhere, and doesn't have the localisation issues that moving to a short-month-name default (e.g. "2 May 2016") would bring.
Admittedly most users will want to change the date format through the provided hook, but a sensible default would be... sensible.
Happy to create a PR.
The text was updated successfully, but these errors were encountered: