from datetime import datetime


def validate_date_format(date, format):
    """
    Return None if a date format does not parse.

    Parameters
    ----------
    date : type
        Input date string.
    format : type
        Input accpeted format to try.

    Returns
    -------
    type
        Returns date on successful parse or None on parsing failure.

    """

    try:

        return(datetime.strptime(date, format))

    except Exception:

        return(None)