tomorrow = today + timedelta(days=1) yesterday = today - timedelta(days=1) print("tomorrow -> " + datetime.strftime(tomorrow, '%Y-%m-%d')) print("yesterday -> " + datetime.strftime(yesterday, '%Y-%m-%d')) # 結果 # tomorrow -> 2017-12-09 # yesterday -> 2017-12-07 (補足) timedeltaオブジェクトは二つの日付や時刻間の差を表す timedelta(days=1)というオブジェクトは1日分の差を表す 他にはseconds, minutes, hoursみたいな引数が使える 月単位の演算(翌月とか) datetimeでは計算できないの