title: Inclusive Date Range check in Joda Time
body: <p>I am using Joda Time 2.1 library.</p>
  
  <p>I have written a method to compare if a given date is between a date range of not. I want it to be inclusive to the start date and end date.I have used <code>LocalDate</code> as I don't want to consider the time part only date part.</p>
  
  <p>Below is the code for it.</p>
  
  <pre><code>isDateBetweenRange(LocalDate start,LocalDate end,LocalDate target){
  
         System.out.println("Start Date : "
                +start.toDateTimeAtStartOfDay(DateTimeZone.forID("EST"));
  
         System.out.println("Target Date : "
                +targettoDateTimeAtStartOfDay(DateTimeZone.forID("EST"));
  
         System.out.println("End Date : "
                +end.toDateTimeAtStartOfDay(DateTimeZone.forID("EST"));
  
         System.out.println(target.isAfter(start));
  
         System.out.println(target.isBefore(end));
  }
  </code></pre>
  
  <p>The output of above method is : </p>
  
  <pre><code>Start Date: 2012-11-20T00:00:00.000-05:00
  Target Date: 2012-11-20T00:00:00.000-05:00
  End Date : 2012-11-21T00:00:00.000-05:00
  target.isAfter(start) : false
  target.isBefore(end) : true
  </code></pre>
  
  <p>My problem is <code>target.isAfter(start)</code> is false even if the <code>target</code> date and <code>start</code> are having the same values.</p>
  
  <p>I want that <code>target &gt;= start</code> but here it considers only <code>target &gt; start</code>.<br>
  I want it inclusive. </p>
  
  <p>Does it mean that <code>isAfter</code> method finds a match exclusively ?</p>
  
  <p>I have gone through the javadoc for Joda Time, but didn't found anything about it.</p>