My Input is 9666124705
I need output like 996-612-4705
Give me sample for this.
Hi amar,
Refer the below code.
C#
long a = 9666124705; Response.Write(a.ToString("###-###-####"));
VB.Net
Dim a As Long = 9666124705L Response.Write(a.ToString("###-###-####"))
Output
966-612-4705
Please refere this link
http://www.beansoftware.com/NET-Tutorials/format-string-phone-number.aspx
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.