Author: radha_chirthanuru | Posted on: 2/10/2010 2:49:59 AM | Views : 305

Hi All,


in my application i have to entrer the date into a textbox. and i'm using a Ajax Tool Kit Calendar control to select the date and is put into a Text Box.


the date format should be MM/dd/yyyy.


i have the regular expression for dd/MM/yyyy format.


<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                   ControlToValidate="txtvaliddate"
                   ValidationExpression="^(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}|\d))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}|\d))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}|\d))|(29[\.\-\/]0?2[\.\-\ ...

Go to the complete details ...