I have a date column in a MySQL table. I want to insert a datetime.datetime() object into this column. What should I be using in the execute statement?
datetime.datetime()
For a time field, use:
import time time.strftime('%Y-%m-%d %H:%M:%S')
I think strftime also applies to datetime.