Since DateTime is a value type you cannot assign null to it, but exactly for these cases (absence of a value) Nullable<T> was introduced – use a nullable DateTime instead:
DateTime? myTime = null;
Since DateTime is a value type you cannot assign null to it, but exactly for these cases (absence of a value) Nullable<T> was introduced – use a nullable DateTime instead:
DateTime? myTime = null;