gotchacsharpCritical
How to calculate difference between two dates (number of days)?
Viewed 0 times
dayshowcalculatebetweendifferencenumbertwodates
Problem
How can one calculate the number of days between two dates in C#?
Solution
Assuming
StartDate and EndDate are of type DateTime:(EndDate - StartDate).TotalDaysCode Snippets
(EndDate - StartDate).TotalDaysContext
Stack Overflow Q#1607336, score: 2654
Revisions (0)
No revisions yet.