Be a bit more thorough with Date handling for minDate or maxDate.