SyntaxFix
Write A Post
Hire A Developer
Questions
You can use PadLeft
var newString = Your_String.PadLeft(4, '0');