Fix date method logic if end date is before start date