Since 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 simelar, you could use
the MinValue property:
if(myDate == DateTime.MinVal ue)
{
//myDate is empty
}
"vince" <anonymous@disc ussions.microso ft.com> wrote in message
news:073f01c3ba 3a$88f51b20$a40 1280a@phx.gbl.. .[color=blue]
> I want to assign a null value to a DateTime variable.How
> do i do that?
>
> Thanks
> Vince[/color]
Sorry Vince, it is a value type, so it can't be null. I usually work around
this by assigning DateTime.MinVal ue as the "null" value.
Regards
Ron
"vince" <anonymous@disc ussions.microso ft.com> wrote in message
news:073f01c3ba 3a$88f51b20$a40 1280a@phx.gbl.. .[color=blue]
> I want to assign a null value to a DateTime variable.How
> do i do that?
>
> Thanks
> Vince[/color]
Comment