Now in minDate,maxDate,minTime and maxTime can put Date object