How do you loop through an entire year showing each day's date?
Jump to Post
You are dealing with date objects so it is best to use module datetime ...
import datetime # pick a year year = 2006 # create date objects begin_year = datetime.date(year, 1, 1) end_year = datetime.date(year, 12, 31) one_day = datetime.timedelta(days=1) print "These are all the dates …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.