---
title: "How to display date and time on a dashboard"
description: "Displaying date and time on a Geneos dashboard requires adding a headline cell with a rule using Compute Engine. This cell can then be dragged to the Active Dashboard to show formatted date and time with time zone information."
url: "https://docs.itrsgroup.com/docs/faq/geneos/4453655139997-geneos-how-to-display-date-and-time-on-a-dashboard/index.html"
---
While we don't have a widget within the Active Dashboard Palette to display date and time on a dashboard, it is possible to add date and time to a dashboard with some additional steps.

With the [Compute Engine](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#compute-engine) feature, you can add a blank headline cell with a label to an existing dataview, and add a rule to the headline cell to display date and time. You can then drag and drop the newly added headline cell to your Dashboard.

Follow these steps:

## Add a headline cell to an existing dataview using Compute Engine

1. Select the sampler you want to add the headline cell to, then select the **Advanced** tab at the top of the sampler record.

![Advanced tab](https://docscdn.itrsgroup.com/faq/images/geneos/advanced-tab-sampler.png)

2. Select **Add new** under the **Dataviews**.

3. In the Name field, add the dataview name you wish to add the headline cell to.
4. Click **Additions** on the right-hand side to open the **Additions** window to add the headline cell name as seen below:

![Additions window](https://docscdn.itrsgroup.com/faq/images/geneos/add-headline-data.png)

5. Once done, close the window, and save the changes in the Gateway Setup Editor. You should now see a blank headline cell titled `Timestamp` in the CPU dataview.

![Timestamp in CPU dataview](https://docscdn.itrsgroup.com/faq/images/geneos/timestamp-CPU-dataview.png)

## Add rule to newly added headline cell

The following rule uses the [now()](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#now) function to get the current time at the point of the rule execution.

The time is expressed as seconds since UNIX epoch. The [printDate()](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#printdate) function is used to convert the timestamp grabbed from the `now()` function and format it based on the formatting codes set.

For a full list of available format codes, see [Time Formatting Printing Codes](https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/geneos_timeformats_tr/index.html#time-formatting-printing-codes).

This rule uses the `%Z` specifier to display the time zone abbreviation. As such, the rule will display the date and time based on the Gateway's time zone.

![Date and time of Gateway](https://docscdn.itrsgroup.com/faq/images/geneos/rule-display-date-time.png)

The Timestamp headline cell is no longer blank and displays the date and time along with the time zone abbreviation:

![Date and time with time zone abbreviation](https://docscdn.itrsgroup.com/faq/images/geneos/timestamp-cell-display.png)

If you would like to set a time zone for which to format the date and time from, the `printDate()` function has a third optional parameter that allows you to specify the time zone region. The following rule will display the time in Central Standard Time (CST).

![Time in CST](https://docscdn.itrsgroup.com/faq/images/geneos/rule-display-CST.png)

![Dataview of time in CST](https://docscdn.itrsgroup.com/faq/images/geneos/CPU-rows-dataview.png)

For a full list of time zone abbreviations and their accompanying time zone region name, run the following command in the gateway's local directory:

```
./gateway2.linux_64 -display-timezone-defaults
```

### Create Dashboard Object

Once the headline cell is ready, it can be dragged and dropped to the Active Dashboard. The **Tools & Modifiers** window will come up.

In this example, the Block 4 with Value object is selected, which has a built-in modifier that will display the value from the Timestamp headline cell.

![Dashboard Object](https://docscdn.itrsgroup.com/faq/images/geneos/CPU-dashboard-object.png)


