We have the following string in a variable:
date_variable = "2022-08-24T04:57:17.065000+00:00"
We would like to convert this to datetime.
The following does not work:
timestamp_formatted = datetime.strptime(date_variable, '%Y-%m-%d%H:%M:%S.%f+%z')
Please help.