add endDate for calendar