title: setHours is not a function when converting time from string
body: <p>I am trying to compare a time in string format to the current time. I've tried setting up two Date objects and calling .Now() on both of them, then on one of them adjusting the time to the time that is in string format by splitting it and parsing both the hours and minutes to integers, but I get the following error:</p>
  
  <blockquote>
    <p>setHours is not a function</p>
  </blockquote>
  
  <p>The 'cutoff' value I'm using is '15:00' and when following in the debugger I can see this splits in to split[0] = 15 and split[1] = 00 (this is before they are parsed into integers.</p>
  
  <pre><code> var cutoff = data.CutOff;
   var split = cutoff.split(":");
   var today = Date.now();
   var hours = parseInt(split[0]);
   var min = parseInt(split[1]);
   today.setHours(hours, min);
   if (Date.now() &lt; today) {
       // Do Something
   }
  </code></pre>