How to tell if a date is between two other dates?

If you convert all your dates to datetime.date, you can write the following:

if start <= date <= end:
    print("in between")
else:
    print("No!")

Leave a Comment