Jquery calculating time duration by giving start time and end time
<p>I am using jQuery time picker to get start time and end time in 12hr format. I need to calculate time duration between start time and end time in HH:MM:SS format. I have the following code with me. But its returning duration like 1.1666. So what changes should I make in my code.</p>

<pre><code>valueStart = $("#startTime").val();
valueStop = $("#endTime").val();
var diff =  ( new Date("1970-1-1 " + valueStop) - new Date("1970-1-1 " + valueStart) ) /    1000 / 60 / 60;
    var diffe = Math.abs(diff);
    alert(diffe);
</code></pre>
