Work with dates and times.
Source Code
from datetime import datetime, timedelta
# Current date and time
now = datetime.now()
print(now)
# Add days to the current date
future_date = now + timedelta(days=10)
print(future_date)
Work with dates and times.
from datetime import datetime, timedelta
# Current date and time
now = datetime.now()
print(now)
# Add days to the current date
future_date = now + timedelta(days=10)
print(future_date)