This question is to compare dates inclusively in Java.
Is there a better way to check if a given date is within a range inclusively?
Date startDate, endDate, dateToCheck;
if ( dateToCheck.equals(startDate) || 
     dateToCheck.equals(endDate) || 
    (dateToCheck.after(startDate) && dateToCheck.before(endDate) ) 
 
     
     
    