How can I format an integer variable so it becomes a leading zero string
<p>Need some help with C#.</p>

<p>I have a variable i that has numbers from 1 to 20. I would like to convert this variable so it displays 01,02 etc as a string and then have it increment. I tried to do this with the following but it didn't work. </p>

<pre><code>i++.ToString('D2')
</code></pre>

<p>Any ideas would be much appreciated</p>

<p>Judy</p>
