I'm working on amping up the Python skills (I work heavy in R) and I'm trying to replicate the creation of a list of dates in python in iso format for passing as strings into a sql server connection:
here is the list:
#step 1:create date list
base = datetime.datetime(2017, 3, 31)
date_list = [base - datetime.timedelta(days=x) for x in range(0, 90)]
**strong text**
now how do I turn it into an iso like this:
base.strftime('%Y-%m-%d')
but retain the list element, so change the entire list in date_list into iso formats?