Input Date Validation in ASP.NET(C#)

  • Thread starter Thread starter Rupang
  • Start date Start date
R

Rupang

Hi,
I need to validate that the Entred Date is Valid in my
ASP.NET Web App with Code Behind in C#.

Is there something similar to IsDate Function in VB6.0?

Do any one has some approch to do this?

Thanks,
Rupang
 
DateTime d;
try {
d = DateTime.Parse(sometextbox.Text);
} catch {
// Failure
}
-mike
MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top