In C# I have an integer value which need to be convereted to string but it needs to add zeros before:
For Example:
int i = 1;
When
i.ToString("D4");
See MSDN on format specifiers.