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 what observations between vb.net and vc#.net?

564


What are the two main parts of .net?

577


What do you understand by vb.net?

617


What is multiple form in vb?

462


what is common language specification?

524






What is the importance of a Button control?

876


What are the advantages of vb.net and c#?

647


Explain the difference between namespace and assembly?

519


how many server control present in .net

2300


Explain about the keyword must inherit?

589


What is enumerator?

574


What are the advantages of migrating to vb.net?

579


Explain cts?

540


Explain convert.tostring and i.tostring method?

535


What is the difference between c# and vb.net?

570