title: datetime objects format
body: <p>I am trying to use datetime objects, including <code>datetime.month</code>, <code>datetime.day</code>, and <code>datetime.hour</code>.</p>
  
  <p>The problem is that these objects (say <code>datetime.month</code>) give values as 1, 2, 3, and so on to 12. Instead, I need these in the format 01,02,03 and so on to 12. There's a similar issue with days and months. </p>
  
  <p>How can I switch to this format?</p>
  
  <hr>
  
  <p>I realized this wasn't a very clear question:</p>
  
  <p>I'm using string formatting to print values from a dictionary I have with timestamps. </p>
  
  <p>So, the expression is roughly:</p>
  
  <pre><code>print "%s-%s-%s"%(date.year, date.month, date.day, etc., len(str) )
  </code></pre>
  
  <p>My values were originally in the correct <code>"%Y-%m-%d</code> form (such as 2000-01-01). Using the above, I get 2000-1-1. </p>