This Python DateTime tutorial will teach you how to add a timedelta to DateTime in Python. In the following example, we will add three days to the current date and time.
# Import the datetime module import datetime # Get the current date and time date_time = datetime.datetime.now() # Add 3 day to the date and time date_time = date_time + datetime.timedelta(days=3) # Display the date and time print("Date and time after 3 days:", str(date_time))