def _pd_date_parse_list_from_metadatadata(table_metadata):
    """
    Get list of columns to pass to the pandas.to_csv date_parse argument from table metadata
    """

    table_metadata = table_metadata["columns"]

    parse_dates = []

    for c in table_metadata:
        colname = c["name"]
        coltype = c["type"]

        if coltype in ["date", "datetime"]:
            parse_dates.append(colname)

    return parse_dates