Attempts to return the date that has accessibility focus.

@return The date that has accessibility focus, or {@code null} if no date
has focus.
974782
private CalendarDay findAccessibilityFocus() {
        final int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View child = getChildAt(i);
            if (child instanceof SimpleMonthView) {
                final CalendarDay focus = ((SimpleMonthView) child).getAccessibilityFocus();
                if (focus != null) {
                    // Clear focus to avoid ListView bug in Jelly Bean MR1.
                    ((SimpleMonthView) child).clearAccessibilityFocus();
                    return focus;
                }
            }
        }

        return null;
    }
728042
public int getIndexByDate(Date date)
   {
      int result = -1;
      int index = 0;

      for (CostRateTableEntry entry : this)
      {
         if (DateHelper.compare(date, entry.getEndDate()) < 0)
         {
            result = index;
            break;
         }
         ++index;
      }

      return result;
   }
257245
public LocalDate getStartAsLocalDate() {

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

    }
651789
public long getSortDate() {

        long result = getDateLastModified();
        if (m_related != null) {
            for (CmsPublishResource rel : m_related) {
                result = Math.max(result, rel.getSortDate());
            }
        }
        return result;
    }
1008676
public Calendar getSelectedDate() {
        final Object selectedItem = getSelectedItem();
        if(!(selectedItem instanceof DateItem))
            return null;
        return ((DateItem) selectedItem).getDate();
    }
424964
public java.util.Date getStart()
   {
      if (childNode.getTextValueForPatternName("start") != null) {
         return XMLDate.toDate(childNode.getTextValueForPatternName("start"));
      }
      return null;
   }
362291
public CostRateTableEntry getEntryByDate(Date date)
   {
      CostRateTableEntry result = null;

      for (CostRateTableEntry entry : this)
      {
         if (DateHelper.compare(date, entry.getEndDate()) < 0)
         {
            result = entry;
            break;
         }
      }

      return result;
   }
623121
public Observance getObservance(Date date) {
		Boundary boundary = getObservanceBoundary(date);
		return (boundary == null) ? null : boundary.getObservanceIn();
	}
798392
public String getDate(Date date) {

        return CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.SHORT);
    }
343664
public String getDate(Date date) {

        return CmsDateUtil.getDate(date, DateFormat.SHORT, m_locale);
    }
1239283
public Date getEndDate()
    {
        if ((m_startTime != null) && (m_endTime != null))
        {
            if (m_endTime.before(m_startTime))
                return m_startTime;
        }
        return m_endTime;
    }
458624
public java.lang.String getOnfocus() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.onfocus);

    }
248468
public Date setMinSelectableDate(Date min) {
		if (min == null) {
			minSelectableDate = defaultMinSelectableDate;
		} else {
			minSelectableDate = min;
		}
		return minSelectableDate;
	}
1288542
public String getDate() {
        SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
        String date = formatter.format(calendar.getTime());

        return date;
    }
1055193
public static Date getRightDate(final Object object2) {
        if (object2 == null) {
            return null;
        }
        if (object2 instanceof String) {
            return parseDate((String) object2);
        } else if (object2 instanceof Date) {
            return (Date) object2;
        } else {
            throw new IllegalArgumentException("Unable to convert "
                    + object2.getClass() + " to a Date.");
        }
    }
500575
Calculus getAlgorithm(HistoricDate date) {

        for (int i = this.events.size() - 1; i >= 0; i--) {
            CutOverEvent event = this.events.get(i);

            if (date.compareTo(event.dateAtCutOver) >= 0) {
                return event.algorithm;
            } else if (date.compareTo(event.dateBeforeCutOver) > 0) {
                return null; // gap at cutover
            }
        }

        return this.getJulianAlgorithm();

    }
43346
private boolean restoreAccessibilityFocus(CalendarDay day) {
        if (day == null) {
            return false;
        }

        final int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            final View child = getChildAt(i);
            if (child instanceof SimpleMonthView) {
                if (((SimpleMonthView) child).restoreAccessibilityFocus(day)) {
                    return true;
                }
            }
        }

        return false;
    }