I am trying to use the solution provided in this answer, and have also referenced this article.
Basically, I am trying to format a social security number. This is the method used in the articles linked above:
String.Format(“{0:###-##-####}”, 123456789);
This works great when the number is passed in as shown above, but the number I need to format is contained in a string - so I am essentially doing this (which doesn't work):
String.Format(“{0:###-##-####}”, "123456789");
What is a good way to get around my problem?