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 the significance of delegates. Where should they be used? What are the situations where we require them?

526


What is vb.net used for?

546


What is strong typing and weak typing?

536


Explain global assembly cache (gac)?

718


What is the class that allows an element to be accessed using unique key?

537






What is the difference between readonly variable and constant variable?

551


hello thank you for replying to my question regarding adding barcode fonts in vb.net project. I have downloaded a free font and added in my vb.net project but now i dont know how to use that i need to generate barcodes can any body help me how to use those fonts these are font3of9 .i need a small code to use these fonts to generate barcode thank u!

1568


What is code access security?

676


How do you retrieve the customized properties of a .net application from xml .config file?

510


What is an assembly and its use?

540


What are the shadow variables?

583


Is vb.net dead?

516


What is sealed class?

594


Explain the difference between namespace and assembly?

508


What is difference between inline and code behind?

513