def get_maintainers_account_creation_date(pypi_profiles):
    """Retrieve dates that maintainers' PyPI accounts were created"""

    dates = []
    # Loop through beautiful soup-ified maintainer data to extract dates
    for soup in pypi_profiles["maintainers_data"]:
        # Because 'time' elements will appear in multiple locations on
        # a PyPI maintainer profile page, filter in only those html
        # tags associated with author metadata
        author_metadata_elements = soup.findAll(
            "div", {"class": "author-profile__metadiv"}
        )
        for elem in author_metadata_elements:
            # Extract any time-related elements and add to dates list
            # if it exists
            date = elem.find("time")
            if date:
                # The [0] slice is because contents is a list and
                # strip() is not a valid method for lists
                dates.append(date.contents[0].strip())

    return dates