'What is the correct format for my datetime object in python?

I'm trying to turn a string into a datetime object, however, I don't know what format I should use. No matter what I try I get this error: time data '2022-02-19 16:58:39.937000' does not match format <"the format I input">. Do you know what format I have to use for this date: "2022-02-19 16:58:39.937000"?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source