title: ValueError: time data '(datetime.datetime(2018, 8, 21, 14, 14, 18, 233000),)' does not match format '%Y-%m-%d'
body: <p>I'm trying to program a script that pulls data from SQL and push it into Quickbase. I only need Year, Month, and Day from my rows</p>
  
  <p>here's the output from print result</p>
  
  <pre class="lang-py prettyprint-override"><code>(datetime.datetime(2018, 11, 30, 19, 52, 32, 927000),)
  (None,)
  (datetime.datetime(2018, 10, 17, 21, 39, 37, 163000),)
  (datetime.datetime(2016, 12, 30, 20, 14, 23, 133000),)
  (datetime.datetime(2018, 10, 17, 21, 31, 21, 853000),)
  (datetime.datetime(2017, 2, 27, 21, 26, 51, 307000),)
  (datetime.datetime(2018, 12, 20, 20, 35, 29, 997000),)
  (datetime.datetime(2019, 9, 5, 15, 29, 22, 967000),)
  (datetime.datetime(2018, 8, 13, 21, 57, 3, 307000),)
  (datetime.datetime(2018, 10, 17, 21, 28, 23, 60000),)
  </code></pre>
  
  <p>Here is what I have</p>
  
  <pre class="lang-py prettyprint-override"><code>for result in cursor.fetchall():
      print(result)
      result = datetime.strptime(str(result), '%Y-%m-%d')
  
  
  
      #client.edit_record(rid = result , fields = {'99' : '1' }, database=CONTACTS_TABLE)
  cursor.commit()
  cursor.close()
  </code></pre>
  
  <p>heres my error</p>
  
  <pre><code>ValueError: time data '(datetime.datetime(2018, 8, 21, 14, 14, 18, 233000),)' does not match format '%Y-%m-%d'
  </code></pre>
  
  <p>Any input appreciated!</p>