How to get the selected date/time range into my dashboard text element?

Hello,

I am creating a dashboard, and I want whatever date/time range that has been selected (Top right), to be shown into the dashboard as a visual element, I thought in a text visual.

Because the dashboard will be many elements long, I wanted to be able to show this text element multiple times where I choose. Hence why I don't want to just relay on the top right showing the date/time frame.

Is there any ideas/advise on how to do this?

Thanks.

Hi @ElasticNovis,

Welcome back! do you know which type of control you want to use?

For Lens, you could try using the @timestamp field (albeit this is driven off the @timestamp field in the documents rather than the selected range explicitly):

In Vega using the %timefield% option.

Hope that helps!