Skip to main content
HomePython

Course

Working with Dates and Times in Python

Intermediate
4.4+
38 reviews
Updated 03/2025
Learn how to work with dates and times in Python.
Start Course for Free

Included withPremium or Teams

PythonProgramming4 hours14 videos48 Exercises4,100 XP66,625Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies

Course Description

You'll probably never have a time machine, but how about a machine for analyzing time? As soon as time enters any analysis, things can get weird. It's easy to get tripped up on day and month boundaries, time zones, daylight saving time, and all sorts of other things that can confuse the unprepared. If you're going to do any kind of analysis involving time, you’ll want to use Python to sort it out. Working with data sets on hurricanes and bike trips, we’ll cover counting events, figuring out how much time has elapsed between events and plotting data over time. You'll work in both standard Python and in Pandas, and we'll touch on the dateutil library, the only timezone library endorsed by the official Python documentation. After this course, you'll confidently handle date and time data in any format like a champion.

Prerequisites

Data Manipulation with pandas
1

Dates and Calendars

Start Chapter
2

Combining Dates and Times

Start Chapter
3

Time Zones and Daylight Saving

Start Chapter
4

Easy and Powerful: Dates and Times in Pandas

Start Chapter
Working with Dates and Times in Python
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review

Included withPremium or Teams

Enroll now

Don’t just take our word for it

*4.4
from 38 reviews
68%
18%
8%
3%
3%
  • Pascal P.
    about 2 months

    Very interesting course on dates and times in Python.

  • Javier G.
    3 months

    A very good explanation with many examples and a perfect slope of difficulty

  • Vu H.
    4 months

    More python tools to my toolbox

  • Li D.
    8 months

    Great

  • Reithabetse K.
    8 months

    It was easy to understand, with great demonstrations.

"Very interesting course on dates and times in Python."

Pascal P.

"A very good explanation with many examples and a perfect slope of difficulty"

Javier G.

"More python tools to my toolbox"

Vu H.

Join over 16 million learners and start Working with Dates and Times in Python today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.