c# format phone number for string code example Example: format phone number in c# .net Convert.ToInt64(value).ToString("###-###-####");