A similar question was posted here in regards to calculating the difference in days of 2 datetimes, however both of my datetimes are nullable, which prevents me from using "TotalDays" as is suggested in that question.
DateTime? startDate;
DateTime? endDate;
return(d1-d2).TotalDays; //This won't work
Any idea how to fix this?
Thanks