A quick example for padding an Integer with zeros in C#:
System.Int32 intMyInteger = 87366;System.String strMyInteger = intMyInteger.ToString().PadLeft(20, '0');
//You can also use D//D4 = pad with 4 zero'sstring outputValue = String.Format("{0:D4}",12);
1 comments: