I have a list of data let say
record = ['Tuesday','2018-08-29']
and I try to send it to google sheet through
sheet.insert_row(record,index)
and I am successfully receiving it on my gsheet but the issue is, that on the gsheet I am getting a date as a string and I can not apply any formula on it. I try to convert the string to date format
import datetime
record[1] = datetime.datetime.strptime(record[1], '%Y-%m-%d')
but then on using insert_row is giving me error that
TypeError: Object of type datetime is not JSON serializable