Use endDate instead of startDate for endDateEpoch