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)
1.4m articles
1.4m replys
5 comments
56.9k users