set minDate and maxDate in datepicker