---
title: "Gateway - I want to alert on a date stamped cell if it has not updated in a specific time"
description: "Alerting on a date-stamped cell that has not updated within a specific time requires parsing and comparing date values. Use the parseDate and now() functions in a Rule to evaluate if the timestamp exceeds the defined time threshold."
url: "https://docs.itrsgroup.com/docs/faq/geneos/4407933450897-geneos-gateway-i-want-to-alert-on-a-date-stamped-cell-if-it-has-not-updated-in-a-specific-time/index.html"
---
## Related to

I want to alert on a date stamped cell if it has not updated in a specific time, alerting on date stamps, alert when not updating, alert on date value cell, alerting on timestamps

### Problem

- You would like to be alerted whenever a dataview cell with a date-stamp formatted value is no longer updating or has not updated within a specific time range.

### Possible Solution(s)

- You will need to use the following Rule functions called [parseDate](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#parseDate), as well as the [now()](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#now) function to get the baseline date values (presented in epoch format) for you to do your comparison within the Rule.
- You will need to take note of the [time/date format parsing codes](https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/geneos_timeformats_tr/index.html#Time_Formatting_Parsing_Codes) in order to use the parseDate function properly.
- In your Rule, where the rule target cell value corresponds to a time stamp, you will need to parse the date according to how the value is formatted,   e.g. "Mon Aug 23 07:03:45 PM 2021"

  - ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/4407933450897-inline-1-mceclip0.png)

  - the parse code in the example above would be: "**%a %b %d %I:%M:%S %p %Y**"
- In the Rule example below, we have a target cell value and we would like to know if that date/time stamp value is already more than 30-days, which corresponds to more than 2,592,000 seconds:

  - ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/4407933450897-inline-2-mceclip1.png)

  - ```
    set $(EpochTime_lastRebootTime) parseDate("%a %b %d %I:%M:%S %p %Y", value)
    set $(now) now()
    set $(delta) $(now) - $(EpochTime_lastRebootTime)
    if $(delta) > 2592000 then
    severity critical
    else
    severity ok
    endif

    ```
- Since the date in the target value is already more than 30 days, the Rule has evaluated the cell as critical
  - ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/4407933450897-inline-3-mceclip2.png)
  - ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/4407933450897-inline-4-mceclip3.png)

## Related Articles

- [How do I compare dates in a rule?](https://docs.itrsgroup.com/docs/faq/geneos/115004029549-geneos-how-to-compare-timestamp-with-the-current-time-in-gateway-rules/index.html)
- [How to calculate difference between two dates and get it converted to seconds](https://docs.itrsgroup.com/docs/faq/geneos/115004029929-geneos-how-to-compare-two-dates-and-display-the-difference-on-the-active-console/index.html)


