change date format for edit calender and add api cancelLetter