title: Comparing 2 dates with momentJS
body: <p>I am trying to compare a DAY/TIME e.g. Monday 09:00:00 with the current time to see if I am past that point in the week. e.g. If it is now 05:00:00 on Monday it should return true however it is returning false everytime</p>
  
  <pre><code>var dayTime = Moment("Wednesday 17:00:00", "dddd HH:mm:ss");
  var now = Moment(Moment.now(), "dddd HH:mm:ss");
  console.log(Moment.utc(dayTime).isBefore(now)); //returns false all the time
  </code></pre>
  
  <p>I found the following similar questions but it didn't seem to fix the issue after formatting the time.</p>
  
  <p><a href="https://stackoverflow.com/questions/23620498/comparing-two-times-with-moment-js">Comparing two times with Moment JS</a></p>
  
  <p>When I replace the <code>moment.now()</code> with a string such as "Wednesday 17:00:00" it returns the expected result.</p>
  
  <p>Any idea what I need to do to <code>moment.now()</code> in order for this to work correctly?</p>