changes data type for event start and end time to datetime objects