Possible Duplicate:
How to display the number “12” in the format of “0000012”
I am trying to get a number to format itself within a predefined amount of 000's (sorry if I am not clear, its not easy to describe)
e.g. 112 would become 00000112
and e.g. 1 would become 00000001
Try it like this myNumber.ToString("D8");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With