MVC 4 how to validate a non-US date with client validation?

后端 未结 4 1710
借酒劲吻你
借酒劲吻你 2020-12-03 08:07

I have a situation where I am having trouble with the client side validation of a datetime field. When I try to submit it keeps telling me the date is invalid (27/7/2013).

4条回答
  •  再見小時候
    2020-12-03 09:08

    When using jQuery validation for dates, you will find out that it does not work well for dates using Chrome. This happens when you use a non-US locale.

    The solution has presented at Fixing jQuery non-US Date Validation for Chrome

提交回复
热议问题