Number formatting: how to convert 1 to "01", 2 to "02", etc.?
string.Format("{0:00}",1); //Prints 01
string.Format("{0:00}",2); //Prints 02
Here is the MSDN article on formatting numbers. To pad to 2 digits, you can use:
n.ToString("D2")
string.Format("{0:00}", yourInt);
yourInt.ToString("00");
Both produce 01, 02, etc...