Date changed to startTime and endTime