I have a date in the format "2011-06-24", and a list of other date strings in the same format. For each string in the list, I want to determine if that date is in the past, compared to "2011-06-24". Is there a way to do this easily in python?
>>> "2011-06-24" > "2010-06-23"
True
>>> "2011-06-24" > "2012-06-25"
False
What is the problem here? Since the dates are obviously in ISO notation you can perform a standard comparison of the dates as strings here...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With