formatting for change type and date