title: How to show only hours and minutes from javascript date.toLocaleTimeString()?
body: <p>Can anyone please help me get the <code>HH:MM am/pm</code> format instead of <code>HH:MM:SS am/pm</code>.</p>
  
  <p>My javascript code is :</p>
  
  <pre class="lang-js prettyprint-override"><code>function prettyDate2(time){
    var date = new Date(parseInt(time));
    var localeSpecificTime = date.toLocaleTimeString();
    return localeSpecificTimel;
  } 
  </code></pre>
  
  <p>It returns the time in the format <code>HH:MM:SS am/pm</code>, but my client's requirement is <code>HH:MM am/pm</code>.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks in advance.</p>