Since DateTime is a value type (like int), a Null value cannot be assigned to it.
DateTime? dateSample;
dateSample.Value = null;
dateSample.Value = null;
//or
Nullable<DateTime> dateSample2;
dateSample2.Value = null;
dateSample2.Value = null;
No comments:
Post a Comment