count days between dates in c# code example
Example: c# calculate difference between two dates in days
(EndDate - StartDate).TotalDays //double
(EndDate.Date - StartDate.Date).Days //int
(EndDate - StartDate).TotalDays //double
(EndDate.Date - StartDate.Date).Days //int