format date in event