boolean inRange(Date lowerBound, Date upperBound, Date[] exclusions)
Indicates whether or not this date is within the specified range. The checking is inclusive, meaning that the lower and upper bound of the range will be tested for the date. A separate list of exclusions can be provided to indicate that even though the date is within the list of ranges, it should not be accepted if found within the exclusions list.
Input Parameters
lowerBound | Date The lower bound of the range to check against (inclusive). |
upperBound | Date The upper bound of the range to check against (inclusive). |
exclusions | Date An array of items to be excluded from the range check. |
Return Value
Boolean Returns true if this date exists within the specified range, false otherwise. |