Format date for datepicker on Event edit