Convert int value 9 to 09 string format in C#.Net

4 06 2009

Try this code :

int i = 9;
 string str = i.ToString("00");

Actions

Information

Leave a comment