I have implemented a dropdown DateTime control and validators based on the accepted answer in the following topic: How to validate a date using 3 dropdowns( day, month, year ) using jquery unobtrusive validation?
I am using MVC 4.
This 3-dropdown date works fine mostly, but sometimes when I click those three dropdowns and choose different values (including "unselected" values), I get the error message form default DateTime validator "The field Date of birth must be a date." even if I have selected valid year/month/date and my custom validator passes.
This message does not prevent POSTing the form when the date is set correctly, but the message is confusing for users.
When I inspect the unobtrusive rules in Firebug, I see that this message comes form default "date" rule. I know I could use rules( "remove" (or delete rule, message) to remove this default date rule, but I am not sure, when it is appropriate time to remove them to stop MVC adding that rule back again.
How do I remove this default "date" rule to ensure that only my custom rule is effective for these three dropdowns?