c sharp set datetime to null code example Example: c# set datetime to null value DateTime? newdate = null;