Add days to date
Calculates the date of n days from the given date.
- Use
datetime.timedeltaand the+operator to calculate the newdatetime.datetimevalue after addingndays tod. - Omit the second argument,
d, to use a default value ofdatetime.today().