'Python: How to compare date string in ISO 8601 format with current time

date_str = '2022-03-29T17:49:35.914417-04:00'

How to compare above date string with current date time?



Sources

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

Source: Stack Overflow

Solution Source