How to get tomorrow's date in Python

Sometimes we need to get the tomorrows date for scripting purposes. We can use Python datetime module to acheive the requirement.

import datetime
tomorrow=datetime.date.today() + datetime.timedelta(days=1)
print(tomorrow)

This will print tomorrows date.

Leave a Reply

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