I have numbers like 1, 2, and 3, and I would like to make them into strings, "01", "02" and "03". How can I do this?
Here is the MSDN article on formatting numbers. To pad to 2 digits, you can use:
n.ToString("D2")
1.4m articles
1.4m replys
5 comments
57.0k users