import re


def extract_date(text):
    """
    Given the HTML text for one day, get the date
    :param text: HTML text for one day
    :return: Date as string
    """
    report_date = re.findall("Arrow Build Report for Job nightly-.*", text)[0]
    report_date = report_date.strip("Arrow Build Report for Job nightly-")
    report_date = report_date.strip("-0$")
    return report_date