Tuesday, October 28, 2014

Calculate difference between two dates (number of days)?

Assuming StartDate and EndDate are of type DateTime:
(EndDate - StartDate).TotalDays

No comments:

Post a Comment