public final void setValue(UTCDate newValue, boolean fireEvents) {
        UTCDate oldValue = value;

        if (oldValue != null) {
            removeStyleFromDates(css().dayIsValue(), oldValue);
        }

        value = CalendarUtil.copyDate(newValue);
        if (value != null) {
            addStyleToDates(css().dayIsValue(), value);
        }
        getView().setAriaSelectedCell(newValue);
        getView().setKeyboardSelectedCell(newValue);

        if (fireEvents) {
            DateChangeEvent.fireIfNotEqualDates(this, oldValue, newValue);
        }
    }
Sets the {@link CustomDatePicker}'s value.

@param newValue   the new value for this date picker
@param fireEvents should events be fired.
stroom-core-client-widget/src/main/java/stroom/widget/datepicker/client/CustomDatePicker.java