start_date = datetime.date(2020, 1, 1) end_date = datetime.date(2020, 1, 4) delta = datetimetimedelta(days=1) while start_date <= end_date: print(start_date) start_date += delta