Check out example codes for "c# convert to nullable datetime". It will help you in understanding the concepts better.
Code Example 1
DateTime? lastPostDate = (DateTime?)(reader.IsDbNull(3) ? null : reader[3]);
Learn ReactJs, React Native from akashmittal.com