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