I have the following code and am getting the above error. Since I\'m new to python I\'m having trouble understanding the syntax here and how I can fix the error:
<
There is a datetime.date() method for converting from a datetime to a date.
datetime.date()
To do the opposite conversion, you could use this function datetime.datetime(d.year, d.month, d.day)
datetime.datetime(d.year, d.month, d.day)