title: format time in hours and minutes javascript
body: <p>I have the following row in my database in rails. </p>
  
  <pre><code>time: 10:00:00 
  </code></pre>
  
  <p>In my javascript code, I call the data from the database and time is returned in   in this format '2000-01-01T10:00:00.000Z'.  Time set in database is 10:00:00. </p>
  
  <p>How do i get the time in HH:MM format in javascript. </p>
  
  <p>If i do this, </p>
  
  <pre><code>var time = 2000-01-01T10:00:00.000Z;
  console.log(time.getHours());
  </code></pre>
  
  <p>i get an error. any help appreciated. </p>
  
  <p>Thanks  </p>