What is the fastest way to format a string using the US phone format [(XXX) XXX-XXXX] using c#?
My source format is a string.
String.Format("{0:(###) ###-#### x ###}", double.Parse("1234567890123"))
Will result in (123) 456-7890 x 123
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With