def format_date(date: str):
    """
    This function formats dates that are in MM-DD-YYYY format,
    and will convert to YYYY-MM-DD, which is required sqlite.
    :param date: The date to modify.
    :return: The modified string.
    """
    tmp = date.split("/")
    return "{}-{}-{}".format(tmp[2], tmp[0], tmp[1])