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