Handled date format in creation of events