def validate_date(date: str) -> bool:
    """This method validates a date to be in yyyy-mm-dd format.

    Args:
        date (str): date string

    Returns:
        bool: True/False based on valid date string
    """
    if "-" not in date:
        return False
    
    date_elements = date.split("-")

    if len(date_elements) != 3:
        return False

    year = date_elements[0]
    month = date_elements[1]
    day = date_elements[2]

    if len(year) != 4:
        return False
    
    if len(month) > 2:
        return False
    
    if int(month) > 12 or int(month) < 1:
        return False

    if len(day) > 2:
        return False
    
    if int(day) > 31 or int(day) < 1:
        return False

    return True