title: How to use toLocaleTimeString 12 hours time without AM/PM abbreviations?
body: <p>I want to show time in 12 hours format without using the <code>AM</code> and <code>PM</code>. For example <code>3:45</code> only and not <code>3:45 PM</code> or <code>3:45 AM</code>. How I can modify the <code>toLocaleTimeString()</code> to not show the <code>PM</code> <code>AM</code> but in 12 number format?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var minsToAdd = 45;
  var time = "15:00";
  var newTime = new Date(new Date("2000/01/01 " + time).getTime() + minsToAdd * 60000).toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit', hour12: true });
  console.log(newTime);</code></pre>
  </div>
  </div>
  </p>