title: python convert single digit day and month to two digits
body: <p>I'm trying to read and convert the following datetime <code>"6/5/2014 00:09:32"</code> to <code>"Mon Mar 09 07:07:18 +0000 2015"</code>. </p>
  
  <pre><code>d = datetime.datetime.strptime('6/5/2014 00:09:32', '%d/%m/%y %H:%M:%S')
  </code></pre>
  
  <p>Gives me a traceback with: </p>
  
  <pre><code>ValueError: time data '6/5/2014 00:00:07' does not match format '%d/%m/%y %H:%M:%S'
  </code></pre>
  
  <p>I tried using %e for single digit days as suggested here: <a href="http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html#index-strftime-2660" rel="nofollow">http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html#index-strftime-2660</a>, but datetime just says it doesn't recognize 'e'.</p>
  
  <p>Unless I am missing something it looks like single digit days and months are my problem, but from the documentation (<a href="https://docs.python.org/2/library/time.html#time.strftime" rel="nofollow">https://docs.python.org/2/library/time.html#time.strftime</a>) I don't see a way to get python's datetime to read single digit days or months. But this seems silly. What am I missing? </p>
  
  <p>Thank you for your help.  </p>