New methods minDate and maxDate