get yesterday's date as a string in `yyyy-mm-dd` format using timedelta,(datetime.now() - timedelta(1)).strftime('%Y-%m-%d')