How do I use the ToString method on an integer to display a 2-char
int i = 1; i.ToString() -> \"01\" instead of \"1\"
Thanks.
This should do it:
String.Format("{0:00}",i);
Here's a link to an msdn article on using custom formatting strings: http://msdn.microsoft.com/en-us/library/0c899ak8.aspx