I want to convert this date format 2020-07-24T19:49:58+03:00 in timestamp.
I have tried with datetime but without success:
data="2020-07-24T19:49:58+03:00"
print (data)
date_time = datetime.datetime(data, '%Y %m %d %% %H:%M')
#date_time = datetime.datetime(data).isoformat()
print (date_time)
with the following error:
Traceback (most recent call last): File "dateparse.py", line 17, in <module> date_time = datetime.datetime(data, '%Y %m %d %% %H:%M') TypeError: an integer is required (got type str)