from datetime import datetime


def checkDate(date: str) -> bool:
    """
    Checks if a string is a valid dob

    Parameters
    ----------
    dob: str
        The name to be Tested

    Returns
    -------
    bool
        True/False according to the validity of the dob
    """
    if not type(date) == str:
        return False
    try:
        datetime.strptime(date, "%Y-%m-%d")
    except Exception:
        return False
    return True