import datetime as dtdefget_date_from_today(delta,strfmt='%Y%m%d'):""" Returns a string that represents a date n numbers of days from today. Parameters ---------- delta : int number of days strfmt : string format in which the date will be represented """return (dt.date.today()+ dt.timedelta(delta)).strftime(strfmt)