Unlike objects for which you can check null, the DateTime is a structure for
which you can't. The way I have been doing this is:
if (myDatetime == Convert.ToDateTime(Null))
{
....
}
Which is long way of doing
if (myDatetime == System.DateTime.MinValue)
{
...
}
I wanted to opinions on what's more acceptable way of DateTime comparison.
In my opinion, the first one, although long, is meaningful. Thanks!
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com