minDate should have priority over startDate