Use timedelta
import datatime
today = datetime.datatme.today()
#tomorrow
tomorrow = today + datetime.timedelta(days=1)
#Next week today
today_week = today + datetime.timedalta(days=7)
#Days from tomorrow to today next week
(today_week - tomorrow).days
Recommended Posts