select the start date or end date automatically when adding a new event. prevent the date selection from exceeding the min/max range.