title: Google app engine datastore datetime to date in Python?
body: <p>I've always hated the headache of managine dates, times, datetimes, and the various formats and conversions that are needed with them. I'm taking an online course on using the google app engine and it says to use the datetime property, which is returning a date in the format:</p>
  
  <p><code>2012-06-25 01:17:40.273000</code></p>
  
  <p>I tried</p>
  
  <p><code>datetime.strptime('2012-06-25 01:17:40.273000','%y-%m-%d %H:%M:%S')</code></p>
  
  <p>but it didn't work..</p>
  
  <p>I just want to extract the <code>2012-06-25</code> part without using a hacky regex or string slicing solution. </p>
  
  <p>How do I parse this and convert it to the proper format?</p>