c# calculate difference between two dates in days

46

c# calculate difference between two dates in days -

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

get number of days between two dates c# -

(EndDate - StartDate).TotalDays

Comments

Submit
0 Comments