How to format a string as a telephone number in C#
Please note, this answer works with numeric data types (int, long). If you are starting with a string, you’ll need to convert it to a number first. Also, please take into account that you’ll need to validate that the initial string is at least 10 characters in length. From a good page full of examples: … Read more