How do you validate Date by using which validation Control?

Answer Posted / arunajyothi.m

<asp:RegularExpressionValidator ID="revEndDate"
ControlToValidate="txtEndDate" ValidationExpression="((^
(10|12|0?[13578])([/])(3[01]|[12][0-9]|0?[1-9])([/])((1[8-9]
\d{2})|([2-9]\d{3}))$)|(^(11|0?[469])([/])(30|[12][0-9]|0?
[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)([/])(2[0-
8]|1[0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?
2)([/])(29)([/])([2468][048]00)$)|(^(0?2)([/])(29)([/])
([3579][26]00)$)|(^(0?2)([/])(29)([/])([1][89][0][48])$)|(^
(0?2)([/])(29)([/])([2-9][0-9][0][48])$)|(^(0?2)([/])(29)
([/])([1][89][2468][048])$)|(^(0?2)([/])(29)([/])([2-9][0-9]
[2468][048])$)|(^(0?2)([/])(29)([/])([1][89][13579][26])$)|
(^(0?2)([/])(29)([/])([2-9][0-9][13579][26])$))"
SetFocusOnError="True" Display="Dynamic"
runat="server">*</asp:RegularExpressionValidator>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pre-jit?

700


What languages does the .net framework support?

710


Did vb6 support multi-threading ?

709


Tell me which namespace are used for accessing the data?

696


Why is the xml infoset specification different from the xml dom?

699






Described strong typing

723


What is the difference between datagrid and gridview?

679


Name the two main parts of .net?

694


Is vb.net a programming language?

712


what is commom language runtime?

715


Explain how the .net framework performs automatic memory management.

734


List the two main parts of .net?

759


Explain the difference between thread and process?

668


How many ways the function can return values?

724


What is jagged array in vb.net?

815