Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1065
Custom Task Information Dialog
posted

I have implemented a custom task information dialog and using data from e.Task.  Is it by design for the e.Task.Deadline to return  #01/01/0001 12.00AM# even when the date from the datatable NULL?

  • 69832
    Verified Answer
    Offline posted

    Yes, because the data type of the Deadline property (and all other date/time properties for that matter) is System.DateTime, which is a value type and thus does not support null. DateTime.MinValue (1/1/0001) is the logical equivalent of null as it implies that the date has not been explicitly set.