Working with Date and Datetime Data

Learn how to work with the different formats and operations for datetime objects in Python and pandas.

The datetime library

The basic Python package datetime (again, in lowercase) is specifically created to work with dates and times. It helps with things such as adding time intervals to dates (like adding X weeks to a date), extracting the month or day from a date, and working with time zones.

Get hands-on with 1200+ tech skills courses.