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
 
Back
Top