Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null datetime fields
Message
From
24/09/2008 10:48:15
John Baird
Coatesville, Pennsylvania, United States
 
 
To
24/09/2008 10:41:30
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350199
Message ID:
01350201
Views:
25
>How?

DateTime is a Value Type (not a Reference Type), so you can't assign
null or Nothing to it. If you want to do something similar, you could use
the MinValue property:
if(dateVal.Equals(DateTime.MinValue))
{
   //dateVal is empty
}
Or you can use the Nullable Types library:
http://nullabletypes.sourceforge.net/
Previous
Reply
Map
View

Click here to load this message in the networking platform