In [1]:
import datetime
In [2]:
#Create a datetime object with today's value
today = datetime.datetime.today()
#print today's date in YYYY-MM-DD format
print datetime.datetime.strftime(today,'%Y-%m-%d')
In [3]:
#add one day to today's date
tomorrow = today + datetime.timedelta(1)
#print tomorrow's date in YYYY-MM-DD format
print datetime.datetime.strftime(tomorrow,'%Y-%m-%d')