Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: IsDate equivalent in c#


Message #1 by Sridhar Raj G <Sridharr@i...> on Wed, 10 Apr 2002 15:26:47 +0530
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
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Wed, 10 Apr 2002 09:40:33 -0700
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



  Return to Index