Returns the date range item that is currently selected.

@return Selected date range item, or null if none selected.
327274
public DateRange getSelectedRange() {
        Listitem selected = getSelectedItem();
        return selected == null ? null : (DateRange) selected.getData();
    }
799457
public com.google.api.ads.admanager.axis.v201902.DateRange getTimeSeriesDateRange() {
        return timeSeriesDateRange;
    }
419735
public Calendar getSelectedDate() {
        Calendar result = dateSpinner.getSelectedDate();
        Calendar time = timeSpinner.getSelectedTime();
        if(result!=null && time!=null) {
            result.set(Calendar.HOUR_OF_DAY, time.get(Calendar.HOUR_OF_DAY));
            result.set(Calendar.MINUTE, time.get(Calendar.MINUTE));
            return result;
        }
        else return null;
    }
690803
public com.google.api.ads.admanager.axis.v201805.Date getDate() {
        return date;
    }
1126048
def get_date_range_this_year(now=None):
    """"""
    if now is None:
        now = datetime.datetime.now().date()
    if now.month <= settings.YEAR_TURNOVER_MONTH:
        date_start = datetime.datetime(now.year - 1, 8, 1)  # TODO; don't hardcode these values
        date_end = datetime.datetime(now.year, 7, 1)
    else:
        date_start = datetime.datetime(now.year, 8, 1)
        date_end = datetime.datetime(now.year + 1, 7, 1)
    return timezone.make_aware(date_start), timezone.make_aware(date_end)
1288542
public String getDate() {
        SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
        String date = formatter.format(calendar.getTime());

        return date;
    }
137061
public DateRange getRange(int index)
   {
      DateRange result;

      if (index >= 0 && index < m_ranges.size())
      {
         result = m_ranges.get(index);
      }
      else
      {
         result = DateRange.EMPTY_RANGE;
      }

      return (result);
   }
433867
public LocalDate getEndAsLocalDate() {

        PlainDate date = this.getEndAsCalendarDate();
        return ((date == null) ? null : date.toTemporalAccessor());

    }
937881
public function getValue(): ?Range
	{
		if (!empty($this->value)) {
			$result = new Range;
			@list($from, $to) = explode($this->delimiter, $this->value);

			if ($from && $to) {
				$result->from = DateTime::createFromFormat($this->format, $from);
				$result->to = DateTime::createFromFormat($this->format, $to);
				return $result;
			}
		}
		return null;
	}
49640
public Date getDate() {
		try {
            date = dateFormatter.parse(getText());
		} catch (ParseException e) {
			date = null;
		}
		return date;
	}
229330
public static <DR extends DateRange<DT>, DT> DR findDateRangeSorted(
            ReadableInstant instant, List<DR> dateRanges) {
        if (dateRanges.isEmpty()) {
            return null;
        }

        if (!(dateRanges instanceof RandomAccess)) {
            // Not random access not much use doing a binary search
            return findDateRange(instant, dateRanges);
        }

        int low = 0;
        int high = dateRanges.size() - 1;

        while (low <= high) {
            int mid = (low + high) >>> 1;
            final DR dateRange = dateRanges.get(mid);
            final int cmp = dateRange.compareTo(instant);

            if (cmp == -1) low = mid + 1;
            else if (cmp == 1) high = mid - 1;
            else return dateRange;
        }

        return null;
    }
1133342
public Date getUnsharedAt() {
        if(mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK)) {
            return  ((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getUnsharedDate();
        }
        return null;
    }
690359
public java.lang.String getOnselect() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.onselect);

    }
347302
public Integer getSelectedLastRow() {
        final Object result = getStateHelper().eval(PropertyKeys.selectedLastRow);
        if (result == null) {
            return null;
        }
        return Integer.valueOf(result.toString());
    }
430464
function getRange(sel) {
	sel = sel || getSelection();
	return sel.rangeCount > 0 ? sel.getRangeAt(0) : null;
}
1217080
public String getSelectedValue() {
        List<WebElement> options = getElement().findElements(By.tagName("option"));
        for (WebElement option : options) {
            if (option.isSelected()) {
                return option.getAttribute("value");
            }
        }
        return null;
    }
601010
public T selected()
	{
		return selectedIndex < 0 || selectedIndex >= options().size() ? null : options().get(selectedIndex);
	}