Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: get the null data for datatime


Message #1 by anirose_US@y... on Tue, 27 Aug 2002 22:25:56
I found it by myself . I just assigned a null datetime to my variable ...
with a specific data which always return null.

Thanks anyway




> What do u mean by getting null data from a datetime !!!!.. be more 
specific
with ur query..

keep me posted if u have issues

==============================
S.Ramanujam
Programmer Analyst
Cognizant technology Solutions (p) Ltd. - CTS
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
     : +xx xx xxx xxxx                 [Res]


-----Original Message-----
From: anirose_US@y... [mailto:anirose_US@y...]
Sent: Wednesday, August 28, 2002 3:56 AM
To: ASPX_Professional
Subject: [aspx_professional] get the null data for datatime


How can I get the null data for my variable which is formatted by DateTime?

try
			{
		if(oldState[4] != null){ BDate = (DateTime)(oldState[4]);
	                }
			
			catch
                        {
	 *************what should I put here ?????
                //BDate = Convert.ToDateTime(12/31/1899);
			}

thanks
---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---
---
Change your mail options at http://p2p.wrox.com/manager.asp or 
to unsubscribe send a blank email to



  Return to Index