private void setDate(UTCDate date) {
        if (getDatePicker().isYearAndMonthDropdownVisible()) {
            // setup months dropdown
            int month = date.getMonth();
            monthSelect.setValue(new IntItem(getModel().formatMonth(month), month));

            // setup years dropdown
            yearSelect.clear();

            int year = date.getFullYear();
            int startYear = year - getNoOfYearsToDisplayBefore();
            int endYear = year + getNoOfYearsToDisplayAfter();

            UTCDate newDate = UTCDate.create();

            for (int i = startYear; i <= endYear; i++) {
                newDate.setFullYear(i);

                yearSelect.addItem(new IntItem(formatYear(newDate), i));
            }
            yearSelect.setValue(new IntItem(formatYear(UTCDate.create(year, 0)), year));
        } else {
//            layout.getElement().setInnerHTML(getModel().formatCurrentMonthAndYear());
        }
    }
Returns the ListBox for selecting the year
stroom-core-client-widget/src/main/java/stroom/widget/datepicker/client/DefaultMonthSelector.java