title: Military time to am/pm conversion using moment.js
body: <p>I have a military time that I am trying to convert to a 12 hr am/pm format as shown below</p>
  
  <pre><code>console.log(moment("13:00", 'HH:mm').format('HH:mm a'));
  console.log(moment("15:00", 'HH:mm').format('HH:mm a'));
  </code></pre>
  
  <p>But I am getting </p>
  
  <pre><code>13:00 pm 
  15:00 pm
  </code></pre>
  
  <p>as the output, when it should be 01:00 pm and 03:00 pm. Am I missing something on the code ?</p>