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

Explain about jagged arrarys ?

513


What is visual basic.net culture?

508


Describe about visual basic.net?

563


What are the features present in vb 2005?

573


Which control is an example of an object in vb net?

6462






What is the differences between dataset.clone and dataset.copy?

638


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2244


Explain code security?

508


What are the difference between dispose(), close(), exit(), end()?

519


Explain the difference between import system.data.sqlclient and system.data.oledb?

555


Can you please explain the difference between vb and vb.net?

462


How many classes a dll can contain?

555


What are the assembly entry points?

585


Explain the difference between dispose and finalize()?

559


What is the ruby interface generator?

558