title: Comparing two times with Moment JS
body: <p>I have a problem that requires me to take two times in 12 hour format and compare them, we have moment.js included in our project and we initially thought it would be as trivial as this:</p>
  
  <pre><code>var beginningTime = moment('8:45am');
  var endTime = moment('9:00am');
  console.log(beginningTime.isBefore(endTime)); //false???
  </code></pre>
  
  <p><strong>Fiddle:</strong> <a href="http://jsfiddle.net/KyleMuir/M4R4z/" rel="noreferrer">http://jsfiddle.net/KyleMuir/M4R4z/</a></p>
  
  <p>Is there something we are missing? It feels like this shouldn't be a hard problem to solve. When we perform any moment functions on our <code>beginningTime</code> or <code>endTime</code> it simply says <code>NAN</code></p>