Fix date handling if it's a range.