Does anyone know how I can validate a date value in C#?
I goggled this and only found a solution using the DateTime.Parse method and trapping the error if it's not a valid date. But that's doesn't seem like a very efficient way to do it.
VB has IsDate()? Doesn't C# have something similar?
Thx.
I goggled this and only found a solution using the DateTime.Parse method and trapping the error if it's not a valid date. But that's doesn't seem like a very efficient way to do it.
VB has IsDate()? Doesn't C# have something similar?
Thx.