question: public static boolean between ( Date baseDate , Date startDate , Date endDate ) { if ( startDate . equals ( endDate ) || endDate . before ( startDate ) ) { return false ; } if ( ( startDate . before ( baseDate ) || startDate . equals ( baseDate ) ) && ( endDate . after ( baseDate ) || endDate . equals ( baseDate ) ) ) { return true ; } return false ; }
target:  Tests if the given base date is between the given start date and end date, including the dates themselves.