Switched startDate and endDate in argument list