fixed date formatting when creating a new event