best way to know difference in dates 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