from datetime import datetime


def checkDate(field_name, date_format):
    """Check if field name is a coorect date string
    Parameters
    ----------
    field_name : string
        the name of the field.
    date_format : string
        Date format to validate the field_name.
    """
    try:
        data = datetime.strptime(field_name, date_format)
        return data
    except ValueError:
        return False