invert endDate