code: public Date getEndDate() {
          DateRange range = getSelectedRange();
          return range == null ? null : range.getEndDate();
      }
docs: Returns the selected end date. This may be null if there is no active selection or if the
  selected date range has no end date.
  
  @return Ending date of range, or null.