def get_from_and_to_date(date_format=INPUT_DATE_FORMAT):
    """
    Returns the 'from' and 'to' dates as formatted strings based on the given date_format.

    Args:
        date_format (str): Optional. The format string for the output dates. Default is INPUT_DATE_FORMAT.

    Returns:
        tuple: A tuple containing the 'from' and 'to' dates as formatted strings.
    """
    current_date_time = datetime.utcnow().replace(second=0, microsecond=0)
    last_run_date_time = state.get()
    logging.debug(last_run_date_time)
    if last_run_date_time is not None:
        from_date_time = datetime.strptime(last_run_date_time, date_format)
    else:
        from_date_time = current_date_time - timedelta(days=LAST_X_DAYS)

    return format(from_date_time, date_format), format(current_date_time, date_format)

    Returns the 'from' and 'to' dates as formatted strings based on the given date_format.

    Args:
        date_format (str): Optional. The format string for the output dates. Default is INPUT_DATE_FORMAT.

    Returns:
        tuple: A tuple containing the 'from' and 'to' dates as formatted strings.
    
Solutions/HYAS Protect/Data Connectors/HyasProtect/__init__.py