Wednesday, March 28, 2012

validate the date type input

is there a easy way to validate a date that the user inputs ..

I mean i have a text box where the user enter a date and i am suppose to validate it..
say mm/dd/yy is the format i need to validate that date..

is there a easy way..can someone share the codeUse a compare validator


<asp:comparevalidator id="cv1" runat="server" controltovalidate="mydate" Operator="DataTypeCheck" Type = Date />

No comments:

Post a Comment