title: How to get the total hours with different dates in C#
body: <p>This is my problem now, i want to get the total hours and mins of work.
  example from jan. 11 2017 22:00 to Jan. 12 2017 7:00.
  so far i have it only work when the end date is not change</p>
  
  <pre><code>DateTime pin = today, pout = DateTime.Parse(empTime);
  TimeSpan spanMe = pout.Subtract(pin);
  
  spanMe.Hours
  spanMe.Minutes
  </code></pre>
  
  <p>it gives me negative numbers.</p>