Skip to content

How to increment date by one in Python?

date = datetime(2020, 2, 20)
date += timedelta(days=1)

print(date)
See also  How to sort list in descending order in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.