I am having an issue in my python project. I have a date in string format "2022-12-14T18:25:23.978000+00:00"
and I need to convert it into datetime. I found out strptime method in documentation for that, however I am having trouble actually finding out what format is my string in so can decouple it correctly? Is there some special method that would help me with that?
Asked
Active
Viewed 128 times
0

J. Donič
- 131
- 7
-
Look for ISO 8601. In Python you have `datetime.fromisoformat` method for parsing to datetime dtype. – FObersteiner Mar 12 '22 at 15:27
-
Does this answer your question? [How do I parse an ISO 8601-formatted date?](https://stackoverflow.com/questions/127803/how-do-i-parse-an-iso-8601-formatted-date) – FObersteiner Mar 12 '22 at 15:30