SyntaxFix
Write A Post
Hire A Developer
Questions
you may also want to look at
var hours = (datevalue1 - datevalue2).TotalHours;