title: How to check if date is between interval in java?
body: <p>I have six <code>int</code> variables: <code>currentMonth</code>, <code>currentDay</code>, <code>monthFrom</code>, <code>dayFrom</code>, <code>monthUntil</code> and <code>dayUntil</code>. I need to check if todays month and day falls within a range of from and until variables. </p>
  
  <p>For example if <code>currentMonth = 1</code>, <code>currentDay = 2</code>, <code>monthFrom = 11</code>, <code>dayFrom = 
   24</code>, <code>monthUntil = 3</code> and <code>dayUntil = 3</code> the date is in the interval and the method should return true.</p>
  
  <p>I'm not sure how to do it though. Is there any other option than to check every possible outcome using ifs?</p>