Set selectedDate when defaultDate is being computed