Bill Gower <(E-Mail Removed)> wrote:
> How do I assign a null value to a datetime variable?
You can't. DateTime is a value type, like int, char and boolean.
(That's not an exhaustive list!)
If you're using .NET 2.0, you can use DateTime? which is a nullable
version of DateTime. See
http://pobox.com/~skeet/csharp/csharp2/nullable.html for more
information.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too