from datetime import datetime


def format_dates_for_query(date_list):
    """Format list of dates as needed for query.

    Date list is turned into a single string for use in
    BigQuery query `where` statement that filters by date.

    Parameters
    ----------
    dates_list: list
        collection of dates of days we want to pull data for

    Returns
    -------
    list[str]: ["YYYY-MM-DD"), "YYYY-MM-DD"]
    """
    formatted_date_strings = [datetime.strftime(date, "%Y-%m-%d")
                              for date in date_list]
    return formatted_date_strings