def convert_date(date):
    """
    Convert date of form MM/DD/YYYY into YYYY-MM-DD. Assumes date is correct
    form.
    """
    
    mdy = date.split("/")
    m = mdy[0]
    d = mdy[1]
    y = mdy[2]
    newDate = "%s-%s-%s" % (y, m, d)
    return newDate