I'm trying to convert this date '2021-09-29 00:05:00+00:00' into "str" using the following code:
date1 = '2021-09-29 00:05:00+00:00'
date1 = datetime.datetime.strptime(date1,'%Y-%m-%d %H:%M:%S+%f')
but I get the error:
"ValueError: unconverted data remains: :00".
I don't know how to deal with the microseconds. Any help to use strptime with that date format would be more than appreciated!
Thanks in advance.