code: public void setDateRangeLimits(LocalDate firstAllowedDate, LocalDate lastAllowedDate) {
          if (firstAllowedDate == null && lastAllowedDate == null) {
              throw new RuntimeException("DateVetoPolicyMinimumMaximumDate.setDateRangeLimits(),"
                      + "The variable firstAllowedDate can be null, or lastAllowedDate can be null, "
                      + "but both values cannot be null at the same time. "
                      + "If you wish to clear the veto policy, then call the function: "
                      + "'DatePickerSettings.setVetoPolicy(null)'.");
          }
          if (firstAllowedDate != null && lastAllowedDate != null
                  && lastAllowedDate.isBefore(firstAllowedDate)) {
              throw new RuntimeException("\"DateVetoPolicyMinimumMaximumDate.setDateRangeLimits(),"
                      + "The lastAllowedDate must be greater than or equal to the firstAllowedDate.");
          }
          this.firstAllowedDate = firstAllowedDate;
          this.lastAllowedDate = lastAllowedDate;
      }
docs: setDateRangeLimits, This sets the currently used date limits.