title: How can I convert milliseconds to "hhmmss" format using javascript?
body: <p>I am using javascript Date object trying to convert millisecond to how many hour, minute and second it is.</p>
  
  <p>I have the currentTime in milliseconds</p>
  
  <pre><code>var currentTime = new Date().getTime()
  </code></pre>
  
  <p>and I have futureTime in milliseconds</p>
  
  <pre><code>var futureTime = '1432342800000'
  </code></pre>
  
  <p>I wanted to get difference in millisecond</p>
  
  <pre><code>var timeDiff = futureTime - currentTime
  </code></pre>
  
  <p>the the timeDiff was</p>
  
  <pre><code>timeDiff = '2568370873'
  </code></pre>
  
  <p>I want to know how many hours, minutes, seconds it is.</p>
  
  <p>Could anyone help?</p>