validate Date input using Custom Validator

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

how to use Custom Validator to valid the date input, such as Feb does not have 30th or April does not have 31st....
I don't want to use Calender control...
 
If you don't "have" to use the custom validator, then why not use a compare
validator? Set the Operator property of the validator to "DataTypeCheck",
and the Type property to "Date".

It's pretty smart too, I just tested it out and it validated (even on client
side), leap years, and everything you mentioned in your post.

--Michael
 
Back
Top