def validDate(date: str) -> bool:
    """Return whether a string follows the format of ####-##-##."""
    if len(date) == 10:
        return date[0:4].isnumeric() and date[5:7].isnumeric() and date[8:10].isnumeric() and date[4] == "-" and date[7] == "-"
    return False