thanks, I'll give that a try. I was using substring, but thought there may be a simpler way.
thanks very much,
Pat
>Patrick,
>Your temp string has 10 digits :)
>
>The code below should do what you want:
>
>string ssn = "123456789";
>MessageBox.Show(ssn.Insert(3,"-").Insert(6,"-"));
>
>
>Einar
>
>>Do anyone know of a simple way to convert a 9 digit string to a SSN format?
>>
>>For example:
>>
>>string temp = "1234567890";
>>MessageBox.Show(temp.ToString("000-00-0000"));
>>
>>Of course, the above does not work, but there should be an easy way of doing this.
>>
>>Thanks,
>>Pat Moran