How do I add "123" to the beginning of a string and pad it to be exactly 12 chars?

Viewed 64493

I need to add "123" and zeros for any string - but the resulting string must be exactly 12 characters long.

For example:

28431 = 123000028431
987   = 123000000987
2     = 123000000002

How to do this in C#?

6 Answers
Related