> When I pass a null date from my client to my service project, it comes
> across as #12:00:00 AM#. While I can easily code for this, it seems like a
[quoted text clipped - 4 lines]
> Thanks,
> Ron
DateTime is a structure so it is impossible to assign null for it. In
order to specify the null date it is often assigned to
DateTime.MinValue. Maybe this has happened in your case.
Regards,
Mykola
http://marss.co.ua
Jon Skeet [C# MVP] - 30 Aug 2007 10:32 GMT
> DateTime is a structure so it is impossible to assign null for it. In
> order to specify the null date it is often assigned to
> DateTime.MinValue. Maybe this has happened in your case.
An alternative, if it's supported by WCF, would be to use DateTime?
(i.e. Nullable<DateTime>).
Jon