from dateutil.relativedelta import relativedelta from datetime import datetime as dt inputDate = (dt.strptime(input(), '%Y/%m/%d') + relativedelta(days=2)) #戻す時にフォーマット処理 print(inputDate.strftime('%Y/%m/%d'))