I made a date format with jQuery Validator, in this format: dd/mm/yyyy.
But I'm having a problem with this format in Google Chrome. In IE or Firefox, the date format is working well, but in Google Chrome, the format accept in maximum 12/12/yyyy. For example, the date 20/12/2014 in IE is ok, but in Chrome, the date is not accept.
The code:
$.validator.addMethod(
"brDate",
function(value, element) {
return value.match(/^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/);
},
"The correct date format is dd/mm/yyyy."
);