title: Time difference and convert into hours and minutes in javascript
body: <p>I am having the time values as follows
  starttime like : 09:00:00 , 
  endTime like : 10:00:00 ;
  here no date value is needed.
  so this values need to calculate difference and convert into hours and minutes,seconds.</p>
  
  <p>I had tried with :</p>
  
  <pre><code>var test = new Date().getTime(startTime); 
  var test1 = new Date().getTime(endTime);
  var total = test1 - test;
  </code></pre>
  
  <p>Some time am getting <code>NaN</code> and <code>1111111</code> some digit format.</p>
  
  <p>How can I convert into HH:MM:SS, or any other way to find time difference.</p>