I want to add some days to a datetime in Python
slday = item.SlDay
traceOut(str(slday))
This is the original date being printed
9/10/2018 12:00:00 AM
I would like to add some days to this original date. I checked using timedelta but couldn´t make it
date_1 = datetime.datetime.strptime(str(slday), "%m/%d/%y")
end_date = date_1 + datetime.timedelta(days=5)
the log shows the following error:
time data does not match format data=9/10/2018 12:00:00 AM, fmt=%m/%d/%y, to: M'/'d'/'yy