minDate bug fixed - maxDate no needed