I have a DateTime passed in from an external C# program to my python script in the following format:
2019-08-22 11:00:25.671640+00:00
But I have a python library that expects it in this format:
2019-08-21 17:04:36.501
How can I format the input string to this format always in python?