I enter date_1 = 2016-10-12 , then to subtract 1 day from it and get the date 2016-10-11. Why does the code give the error Required argument 'month' (pos 2) not found ?
import datetime import time date_1 = 2016-10-12 ds = datetime.date(date_1) delta = datetime.timedelta(days=1) # дельта в 1 день now_date = ds - delta print(now_date)