I am using jQuery Validation Plugin. I used this post to validate my dates using this plugin. It is working but there is a problem. It is accepting 00/00/0000 date as well. How can I invalid this date as well by modifying following function.
$.validator.addMethod(
"australianDate",
function(value, element) {
return value.match(/^\d\d?\/\d\d?\/\d\d\d\d$/);
},
"Please enter a date in the format dd/mm/yyyy"
);