Check that startDate is not after endDate when exporting