REDBOX-264 #Done Made the custom onClose function only work when the datepicker is running in "Month and Year" mode.