enabled minDate and maxDate to be greater or lesser than the current date