# Using time range variables in panel title

**URL:** <https://community.grafana.com/t/using-time-range-variables-in-panel-title/22628>\
**Category:** General\
**Created:** [November 6, 2019, 7:21am UTC](https://community.grafana.com/t/using-time-range-variables-in-panel-title/22628 "2019-11-06T07:21:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![doronha](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@doronha](https://community.grafana.com/u/doronha)\
**Post date:** [November 6, 2019, 7:21am UTC](https://community.grafana.com/t/using-time-range-variables-in-panel-title/22628/1 "2019-11-06T07:21:00Z")

</div>

Hello,

I have a big dashboard and I would like to display the selected time range in each panel title.  
I can found only msec of \_\_from and \_\_to and don’t know how to set them in a readable format

Thanks a head

doron

---

<div class="post-metadata">

**Author:** ![adjandiaye](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adjandiaye](https://community.grafana.com/u/adjandiaye)\
**Post date:** [April 14, 2022, 7:01am UTC](https://community.grafana.com/t/using-time-range-variables-in-panel-title/22628/2 "2022-04-14T07:01:17Z")

</div>

Hello i have the same problem.  
Did you have a solution to convert to a datetime format?

---

<div class="post-metadata">

**Author:** ![scottnapolitan](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/scottnapolitan/32/42411_2.png) [@scottnapolitan](https://community.grafana.com/u/scottnapolitan)\
**Post date:** [May 14, 2024, 7:08pm UTC](https://community.grafana.com/t/using-time-range-variables-in-panel-title/22628/3 "2024-05-14T19:08:42Z")

</div>

If you just want to display the To-From dates in the Title, try this.

```auto
${ __from:date:YY-MM-DD} to ${__ to:date:YY-MM-DD}

```

If you’re looking or a different date time format take a look at [Add and manage variables | Grafana documentation](https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/# __from-and-__ to)
