title: (JS) Enable Button during a certain period of time in a day
body: <p>I've been trying to enable a button only in a certain period of time in a day, but I can't make it work..</p>
  
  <p>What I've been trying to do:
  The button should be enabled from 17:00 o'clock to 22:00 o'clock (GMT +1).
  I wrote my script with the aid of sites where people were requesting a similar system, but I can't make it work.. I  hope that you can help me </p>
  
  <p><strong>Sorry for my english^^</strong></p>
  
  <p>Here is the script:</p>
  
  <pre><code>&lt;input class="submit" type="submit" id="checktime" value="Check"/&gt;
  
  &lt;script type="text/javascript" defer="defer"&gt;
  &lt;!-- 
  var enableDisable = function(){
  var UTC_hours = new Date().getUTCHours() +1;
  if ((UTC_hours == 17) &amp;&amp; (UTC_hours == 18) &amp;&amp; (UTC_hours == 19) &amp;&amp; (UTC_hours == 20) &amp;&amp; (UTC_hours == 21) &amp;&amp; (UTC_hours == 22)){
  document.getElementById('checktime').disabled = false;
  else
  document.getElementById('checktime').disabled = true;
  }
  setInterval(enableDisable, 1000*60);
  enableDisable();
  // --&gt;
  &lt;/script&gt;
  </code></pre>