from datetime import datetime


def convert_date(year: str, week: str):
    """
    Convert raw date field into a value interpretable by the dataserver.

    The date is given by year and week number, the date filtering API
    expects mm/dd/YYYYZ format so we use the first day of the given week.
    """
    date = datetime.fromisocalendar(int(year), int(week), 1)
    return date.strftime("%m/%d/%YZ")