title: Python Date Formatting problems
body: <p>I am trying to format a Datetime object I received from an XmlRPC API. The date is formatted like this <code>(u'20121106T10:23:24')</code>. I tried doing this:</p>
  
  <pre><code>s = datetime.strptime(u'20121106T10:23:24', "%Y%m%dT%H:%M:%S")
  usedate = s.strftime('%Y-%m-%d')
  </code></pre>
  
  <p>I get this exception: </p>
  
  <pre><code>time data "DateTime '20121106T10:23:24' at b556886c" does not match format '%Y%m%dT%H:%M:%S'
  </code></pre>
  
  <p>I want the string to be in a <code>YYYY-MM-DD</code> format. Any help would be greatly appreciated. Thanks guys. </p>
  
  <p><strong>EDIT:</strong> Sharing exact error: </p>
  
  <pre><code>ValueError at /idea/
  
  time data "DateTime '20121106T10:23:24' at b556886c" does not match format '%Y%m%dT%H:%M:%S'
  Exception Type: ValueError
  Exception Value:    
  
  time data "DateTime '20121106T10:23:24' at b556886c" does not match format '%Y%m%dT%H:%M:%S'
  </code></pre>