SyntaxFix
Write A Post
Hire A Developer
Questions
I use this to avoid negative interval.
var seconds = (date1< date2)? (date2- date1).TotalSeconds: (date1 - date2).TotalSeconds;