isInRange checks whether the query date is in range between startDate and endDate and returns “true” if it is in range and returns “false” if it is not in range.
isInRange(Date startDate, Date endDate, Date query)