title: Convert Datetime object of type: %B %D %Y
body: <p>I have a date as:</p>
  
  <pre><code>'September 17, 2013'
  </code></pre>
  
  <p>And I want to convert it to:</p>
  
  <pre><code>2013-09-17
  </code></pre>
  
  <p>I tried this hint taken from this stackoverflow question [1]:</p>
  
  <pre><code>mydate = datetime.datetime.strptime("September 17, 2013", '%B %d, %y')
  </code></pre>
  
  <p>But it gives me an:</p>
  
  <pre><code>File "/usr/lib/python2.7/_strptime.py", line 328, in _strptime
      data_string[found.end():])
  ValueError: unconverted data remains: 13
  </code></pre>
  
  <p>What should I do?</p>
  
  <p>[1] <a href="https://stackoverflow.com/questions/18797171/convert-an-integer-number-in-a-date-to-the-month-name-using-python">convert an integer number in a date to the month name using python</a></p>