Use generic filter programmatically in service

Hi all,

I need a way to use a filter created from a user to filtering the date on the entity. This filter it should be used from a service.

Does exist some solution for this request?

I thought to use a filter created in generic-ui, is it possible?

Thanks to all for the help.