def METHOD_NAME(value, datetime_format):
    """Check if datetime value matches the provided format.
    Args:
        value (str):
            The datetime value.
        datetime_format (str):
            The datetime format to check for.
    Return:
        True if the value matches the format. Otherwise False.
    """
    try:
        datetime.strptime(value, datetime_format)
    except Exception:
        return False
    return True