I am trying to compare a string with a datetime in it and a datatime instance
if datetime.fromisoformat(item[1]) < datetime.datetime.utcnow():
with "item[1]" being str("2021-07-02 23:09:09.936720") but it always raises the error:
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
I can't find a way to fix this error since I don't see the exact problem, thanks a lot if you could help :)