How to get the time difference between two DateTime objects?
<pre><code> emp = moduleEmployee.ReturnEmployeeDAO().FetchEmployeeByID(emp);

 DateTime shiftStartTime = emp.Shift.StartTime;
 DateTime shiftEndTime = emp.Shift.EndTime;

 DateTime attTime = att.Time;
</code></pre>

<p>According to the above code my shiftStartTime is 11.00 PM and shiftEndTime is 7.00 AM. and attTime or signIntime is 1.00 AM. then how to calculate the difference between shiftStartTime and attTime. where the difference should be 2 hour.</p>

<p>please help.....</p>

<p>Thanks Rusho</p>
