Daily reset statistics sensor

Is there a way to reset the statistics sensor on a daily bases?
I see a limit for the samples to be taken, but can’t see to limit this to a time period.

Thanks!