How to increment the day of a datetime?
for i in range(1, 35) date = datetime.datetime(2003, 8, i) print(date)
But I need pass through months and years correctly? Any ideas?
date = datetime.datetime(2003,8,1,12,4,5) for i in range(5): date += datetime.timedelta(days=1) print(date)
2.1m questions
2.1m answers
60 comments
57.0k users