I have a string 731478718861993983 and I want to get this 73-1478-7188-6199-3983 using C#. How can I format it like this ?
Thanks.
string s = "731478718861993983" var newString = (string.Format("{0:##-####-####-####-####}", Convert.ToInt64(s));