Pybites Logo

Working with dates

Level: Newbie

In this bite, we are going to explore the datetime module in Python. Inside of datetime is a class called date. We will talk about classes in Python in later bites, but for now, just think of the datetime.date class as a special type of object for dealing with dates. The datetime module is essential for working with dates (and times) and can help you do cool things such as determining the day of the week you were born.