Timestamp formatting from ${__cell_0}?

Hi all,

I am new to grafana and I would like to know if there is a way to get a readable timestamp instead of all numbers. Currently I am using ${__cell_0} to override the default display name of each bar.

Is it possible to format the output from ${__cell_0} ?

image

1 Like

Have you found a solution to this by any chance?

I too want to do exactly this with the exact same stats. Well, not exact, but you know, showing dates or day names as DisplayName for every bar in the bar gauge visualisation.

The visuals look really nice, but I don’t know if I’m looking at today or last week…

Hi

I was facing the same issue. Just wanted to share the solution I found.

Fields support custom units.
Adding ‘date’ as unit to ${__cell_0} => ${__cell_0:date} will convert the unix timestamp to a readable date format.
image

After that you can also add a custom format for that date.
e.g. ${__cell_0:date:MM-DD-YYYY}
image

Hey! I used that for a while now, but since a few weeks the string does not converts to a readable date anymore.

Was their a update or did something changed on grafana?

1 Like

Yeah… has to be the case cause i doesn’t work for me anymore too…

1 Like

does nobody got this issue?