Problem with datetime module-Python
<p>How come this works:</p>

<pre><code>import datetime
now = datetime.datetime.now()
month = '%d' % now.month

print month
</code></pre>

<p>But this doesn't?</p>

<pre><code>import datetime
now = datetime.datetime.now()
month = '%m' % now.month

print month
</code></pre>

<p>Thanks!</p>
