Wednesday, September 30, 2009

String Padding C#

string sValue = "563";
string sOutput = sValue.PadLeft(5, '0');

No comments: