application_vnd.jupyter.stderr_output_1.png
from datetime import datetime

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

date1str = str(input('Enter date(yyyy-mm-dd): '))
date1 = datetime.strptime(date1str, '%Y-%m-%d')
date1after = date1 + pd.Timedelta(days=1)
print('Date after ', date1, ' is ', date1after)
date1before = date1 - pd.Timedelta(days=1)
print('Date before ', date1, ' is ', date1before)
date2str = str(input('Enter date(yyyy-mm-dd): '))
date2 = datetime.strptime(date2str, '%Y-%m-%d')
print('Difference between ', date2, ' and ', date1, ' is ', date2 - date1)