Back to Geneos FAQ

How to compare two dates and display the difference on the Active Console

You can achieve this in gateway rules with parseDate() function. You can try the following steps: Steps:

  1. Create a gateway rule with the Target XPath pointing to a blank cell

  2. Add path aliases for the two cells that you would want to compare

  3. Convert both of their time values into epoch time by using the parseDate() function, and calculate their difference

  4. Update with the value statement. The result is in the format of a number of seconds.

Refer to below screenshot: Gateway Rule Code Block Screenshot Path AliasScreenshot Dataview Screenshot

Further Reading Copied

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?