How do you validate Date by using which validation Control?

Answer Posted / cherran

Whereas in ASP.Net we can use RegularExpression Validator to
validate the date value. But in VB.NET we have to use Class
RegEx.

If Regex.IsMatch(txtDate,
"(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[012])-((19|20)\d\d)") Then

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about branching logic control in vb.net?

533


What is difference between import system.data.sqlclient,system.data.oledb?

551


How can we store decimal data in .net?

530


Is vb.net a programming language?

531


Explain the difference between namespace and assembly?

508






Explain the difference between system.string and system.stringbuilder classes?

521


What is the significance of delegates?

510


Tell me which namespace are used for accessing the data?

517


What is the main purpose of garbage collector?

501


What do you mean by Redim in VB.NET?

664


Explain public assembly?

544


What are the advantages of migrating to vb.net?

562


Observations between vb.net and vc#.net?

566


Which namespace are used for accessing the data?

638


Explain the use of console application?

526