Wednesday, July 12, 2017

string.Format in C#

string value = String.Format("{0:D5}", number);
or string value = number.toString("D5");
=>> 00001

No comments:
Write comments