title: How to know if now time is between two hours?
body: <p>I have a now time:</p>
  
  <pre><code>new Date();
  </code></pre>
  
  <p>And I have some hour constants, for example, <strong>23</strong> and <strong>8</strong> (it's 11pm or 23:00, 8am or 08:00).
  How I can know is now time between it's two hour constants?</p>
  
  <p><em>It need to run some code of program or not to run if now time is between in two hours, for example, do not run some code if its already evening and while it is not a morning.</em></p>
  
  <p>Here the image to better explain:</p>
  
  <p><a href="https://i.stack.imgur.com/wPS09.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wPS09.png" alt="enter image description here"></a></p>
  
  <p><strong>Some situations when silent mode does not fire:</strong></p>
  
  <pre><code>00:00 20.06.13 - 23:00 20.06.13 // after 23.00 can loud!!
  
  23:00 20.06.13 - 15:00 20.06.13 // after 15.00 can loud!!
  
  01:00 20.06.13 - 08:00 20.06.13 // after 08.00 can loud!!
  
  21:00 20.06.13 - 08:00 20.06.13 // after 08.00 can loud!!
  </code></pre>