title: Moment.js isBefore function not working as expected
body: <p>My console log is giving me an unexpected output.</p>
  
  <pre><code>var bool = (moment("2017-04-08 23:00:00").isBefore(moment("2017-04-09 01:00:00", 'day')));
  console.log(bool);
  </code></pre>
  
  <p>The output is false, for some reason.
  According to the documentation, the following code should return true.</p>
  
  <pre><code>moment('2010-10-20').isBefore('2011-01-01', 'year')
  </code></pre>
  
  <p>Even if it's not a full year past, if it's a different year, my understanding is that it should return false. 
  In my case, while it hasn't yet been 24 hours, it is a different day. 
  Is there something I'm not understanding correctly?</p>