def METHOD_NAME(date_str: str) -> datetime:
    try:
        return datetime.fromisoformat(date_str)
    except ValueError:
        logger.warning(
            "DD/MM/YYYY date format is deprecated"
            ", please use ISO date format YYYY-MM-DD."
        )
        return datetime.strptime(date_str, "%d/%m/%Y")