Create formatEndDate function inside of EventBase.