×
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:
-
Create a gateway rule with the Target XPath pointing to a blank cell
-
Add path aliases for the two cells that you would want to compare
-
Convert both of their time values into epoch time by using the parseDate() function, and calculate their difference
-
Update with the value statement. The result is in the format of a number of seconds.
Refer to below screenshot: Gateway Rule Code Block
Path Alias
Dataview
Further Reading Copied
- parseDate() function in Gateway Rules - Time Formatting Parsing Codes for use in the parseDate() function.
["Geneos"]
["Geneos > Gateway"]
["FAQ"]