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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With