public boolean isValid(Date startDate,Date date){
  return isValid(startDate.getTime(),date.getTime());
}

public boolean isValid ( Date startDate , Date date ) { return isValid ( startDate . getTime ( ) , date . getTime ( ) ) ; }
tests the date to see if it falls within the rules
