So I have this function that retrieve the date from given days from today:
def get_date_from_today(d):
tomorrow = datetime.date.today() + datetime.timedelta(days=d)
return tomorrow.strftime("%Y/%m/%d")
How do I get for example the date of the next Thursday ?
If today if Thursday I want to get the current date and if not I want to closest Thursday date