C# and ASP.NET Code
C# and .NET tips and code snippets
Wednesday, June 12, 2013
Format Phone Number
This is how you could format a phone number using a period as a separator:
String.Format
(
"{0:###\\.###\\.####}"
, 1234567890);
The resulting string will look as follows:
123.456.7890.
1 comment:
Unknown
July 3, 2013 at 6:07 AM
Nice post very helpful
dbakings
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Nice post very helpful
ReplyDeletedbakings