public boolean isDateVisible(UTCDate date) {
        CalendarView r = getView();
        UTCDate first = r.getFirstDate();
        UTCDate last = r.getLastDate();
        return (date != null && first != null && last != null &&
                (CalendarUtil.isSameDate(first, date) || CalendarUtil.isSameDate(last, date) ||
                        (first.getTime() < date.getTime()) && last.getTime() > date.getTime()));
    }
Is the date currently shown in the date picker?

@param date
@return is the date currently shown
stroom-core-client-widget/src/main/java/stroom/widget/datepicker/client/CustomDatePicker.java