c# method to make phone number 10 characters code example Example: format phone number in c# .net Convert.ToInt64(value).ToString("###-###-####");