SyntaxFix
Write A Post
Hire A Developer
Questions
I would do it like this:
int totalMinutes = (int)(end - start).TotalMinutes;