Timefilter in query (elasticsearch)

Hello,

I would like to know if it’s possible to put a timefilter in my query of my panel ? (query in datasource Elasticsearch)

i would like to use the timefilter “Previous month” in my query for lock the panel at this date.

it’s possible ?