fixed date ranges to handle inverse ranges