title: Java: Check if current date is in range of specific days
body: <p>I am struggling with following problem:</p>
  
  <p>In my app I want to check whether a current datetime from <code>LocalDateTime.now()</code>
  is in range of some specific days of week, let's say between <strong>Friday</strong> and <strong>Sunday</strong>. </p>
  
  <p>Example:</p>
  
  <p>Datetime window is from <strong>Friday 20:00</strong> to <strong>Sunday 20:00</strong>. When I check current date on <strong>Thursday</strong> at <strong>22:00*, answer should be <code>false</code> but when I check it on **Saturday</strong> at <strong>8:00</strong>, answer should be <code>true</code>.</p>
  
  <p>I can sort of achieve this with <code>DayOfWeek</code> class in <code>java.time</code> API using <code>compareTo()</code> method and comparing hours and minutes separately but I would like to know if there is any better way to do it  and especially when the range of days spans over two weeks (e.g. <strong>Friday</strong> to <strong>Monday</strong> of the next week)?</p>
  
  <p>Thanks in advance for any advice or help.</p>