swap start and end date if end date is before start date
version 0.5