PhoneFormatter class contains various methods used to format phone numbers.
GetInternationalNumber
TheGetInternationalNumber method returns the international number of the specified phone number. The following example specifies a country ID and a local number and then formats the local number into an international number.
GetBaseNumber
GetBaseNumber is another useful method in the phone formatter class. The example specifies the country ID and the phone number to format. The method formats to the normal phone number format of the specified country. The method removes the additional numbers and characters, and then return the base number as a string.