Add zero-padding to a string October 23, 2022 by Tarik You can use PadLeft var newString = Your_String.PadLeft(4, '0');