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
What is the difference between .dll extension and .exe extension files?
How do you define a read only property in a class module?
Explain about branching logic control in vb.net?
Explain the advantage of option strict on?
What is difference between import system.data.sqlclient,system.data.oledb?
What are the difference between dispose(), close(), exit(), end()? When do we use them?
What is the purpose of an Assembly?
Explain about visual basic.net?
Explain the difference between web.config and machine.config and where it will be ?
Why should you use delegate?
How many classes a dll can contain?
Explain how to achieve polymorphism in vb.net?
Explain how to send xml file on server using http protocol?
Explain about the keyword must inherit?
Explain clr?