LeadingZero Install as a normal Statamic addon. In your template, use {{ var | leadingzero:x }} to add zeros to the output. Replace X with the desired length of the output.