Dan Rayson
0
Q:

c# calculate difference between two dates in days

(EndDate - StartDate).TotalDays //double
(EndDate.Date - StartDate.Date).Days //int
4

New to Communities?

Join the community