10
Answers

asp.net 2010 validate date

Ask a question
scampercat

scampercat

12y
5.3k
1
In a C# 2010 web form application, I would like to know how to setup user server side validators to check the format of a date in mm/dd/yyy format. Basically this would be like a regular expression, custom validator, compare validator. I basically need to validate the mm/dd/yyyy format includes for month, date, year. I also am required to make certain the user enters the date with the '/'. enter.

Can you tell me how to accomplish this goal?

Answers (10)