When using jQuery UI Datepicker, we encouter a problem when used in Google Chrome:
when we enter a date with a day higher than 12, it does not accept it as a valid date, this is because chrome thinks the dateformat is mm/dd/yyyy. We tried to solve this by adding code to try to force the date settings into dd/mm/yyyy
$('.date').datepicker({ dateFormat: "dd/mm/yy" });
Is there any way to resolve this issue, so our datepicker will accept dd/mm/yyyy values?
We only have this issue in google Chrome, the datefix works for firefox, ie & safari.
We are using ASPX & MVC3 with this project.
If someone could solve our issue, that would be great
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…