title: jQuery Countdown get time until 10:00 am today or tomorrow
body: <p>I need a little script and I am a little confused. </p>
  
  <p>I want to use this plugin: <a href="http://keith-wood.name/countdown.html" rel="nofollow noreferrer">http://keith-wood.name/countdown.html</a></p>
  
  <p>Goal: Have a Countdown, that counts from now to 10:00 am - if it's 0-9:59:59 am count to 10 o'clock today if it's after 10:00:00 count to 10:00 tomorrow.
  Is that understandable?</p>
  
  <p>Here's what I need with javascript / jquery (this will not work, i know):</p>
  
  <pre><code>var currentDate = new Date(new Date().getTime());
  var hours = currentDate.getHours();
  var endTime;
      if(hours &gt;= 10){
          endTime = give me next day 10:00
      } else {
          endTime = give me this day 10:00
      }
  $("#countdown").countdown({until: endTime, format: 'HMS'});
  </code></pre>