Hi.,
Thanks In advance
Can any one give me the equivalent for the following VB statement
Code in C# .
VB Code
IF IsDate(sSelDate) Then
---
End IF
C# Code
What???
Regards
Sridhar G
http://www.icode.com
Sridhar,
Try:
try {
DateTime datSelected = Convert.ToDateTime(sSelDate);
// do your then part here
} catch (FormatException) {
// do your else part here
}
Minh.
-----Original Message-----
From: Sridhar Raj G [mailto:Sridharr@i...]
Sent: Wednesday, April 10, 2002 2:57 AM
To: ASP+
Subject: [aspx] IsDate equivalent in c#
Hi.,
Thanks In advance
Can any one give me the equivalent for the following VB
statement
Code in C# .
VB Code
IF IsDate(sSelDate) Then
---
End IF
C# Code
What???
Regards
Sridhar G
http://www.icode.com