Add days to a date
Get a future date by adding days to current date.
Python: 3.0    Anurag Rana    13 Jul 2021   0
Login to upvote
1
2
3
4
from datetime import timedelta, date

current_date = date.today()
future_date = current_date + timedelta(days = 90)
Copy | Download as: .py file   PNG
Share on: FB   Twitter   LinkedIn   WA
©2021 - code108labs   Contributors   Hosted on DigitalOcean   Partner website: pythoncircle.com