Added setMaximumDate