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