I am trying to get the time difference between a date and today. I am getting the error that my field is does not match my TimeDateFormat. Below is the code I am trying to use, can someone tell me what Odoo uses as a Time Date Format?
for record in self:
dateTimeFormat= "%Y-%m-%d"
dateString2 = "x_studio_field_zWYjZ"
dateTime1= datetime.datetime.today()
dateTime2= datetime.datetime.strptime( dateString2, dateTimeFormat)
totaldifference = dateTime2-dateTime1
print (totaldifference)