burak Posted June 15, 2004 Posted June 15, 2004 Hello, I would like to format the string "11304200" into "11-3042.00". Can I do this with String.Format method? Thank you, Burak Quote
Administrators PlausiblyDamp Posted June 15, 2004 Administrators Posted June 15, 2004 (edited) If the string will always be a number you could convert it to an int and then format it. string s = "11304200"; int i = int.Parse(s); s = i.ToString("00-0000.00"); Edited March 30, 2007 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.