Help! You need to find out the last date of the full charge of the battery

Help!!! It is necessary to find out the last date of the full charge of the battery, up to more than 99%, using long -term statistics, including. The data is obtained with breaks (the sensor readings are incomplete, sometimes the device is disabled).
Thank you!!!

I was looking for forums, I found nothing. I could not correctly formulate the request.

Use a triggered template sensor.

## configuration.yaml ##
template:
  - trigger:
      - platform: numeric_state
        entity_id: sensor.your_battery_soc_sensor_here
        above: 99
    sensor:
      - name: Last Full Charge
        state: "{{ now() }}"

Thanks for the answer!!
If I understood correctly, this sensor and trigger does not use statistics and in the work it is necessary to be in line data. Is it possible to get the necessary date using long term statistics!

Thanks for the hint, you can get the necessary data in real time.

I have no idea what you mean by this:

Sorry for the inaccuracy, corrected.
It was meant using the previously collected data.

I still do not understand what you are talking about when you say

If I understand correctly, your sensor and trigger do not use statistics in work. Your sensor changes at the time of full charge of the battery using the state: “{Now ()}}”.

Is it possible to request already collected data to receive a date.

I apologize for a bad description

No. The sensor works from now onwards.