Format date in edit form as in index