I am trying to get a date an year from todays date into a variable. Below is my code.
import time
import datetime
today = time.strftime("%m/%d/%Y")
today_format = datetime.datetime.strptime(today, "%m/%d/%Y")
print (today_format)
exp_date = str(today_format + datetime.timedelta(days=365)).split(" ")
exp = exp_date[0]
print (exp)`
Above code prints:
2017-12-14 00:00:00
2018-12-14
Any idea how to get it to print 12/14/2018??