I have my class with a data member Datetime StartDate
.
This value is filled by the database and can be empty. In this case, I do this command :
StartDate = new DateTime ()
Besides, this property is sent by a WCF service. But, when the StartDate
is empty (so equal to 01/01/0001
) my client loose the connection with the service.
Should I use another type for WCF (datetimeoffset) ? Or how can I use the datetime
?
Thanks !