Convertir strings a date
Nuevo tipLa forma más sencilla de convertir un string a un objeto de tipo fecha, es mediante la función strptime. Basta con colocar como argumento el string y el formado de fecha que este posee.
>>> from datetime import datetime
>>> current_date = '2020-05-08 20:03:50.531862'
>>> datetime.strptime(current_date, '%Y-%m-%d %H:%M:%S.%f')
datetime.datetime(2020, 5, 8, 20, 3, 50, 531862)