You can use i.ToString("D2") or i.ToString("00")
See Standard Numeric Format Strings and Custom Numeric Format Strings on Microsoft Docs for more details
You can use i.ToString("D2") or i.ToString("00")
See Standard Numeric Format Strings and Custom Numeric Format Strings on Microsoft Docs for more details