import re


def validate_date(date):
    """Check that date input is in the expected format"""
    pattern = re.compile('([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))')
    if pattern.match(date):
        return True
    else:
        return False