Back to Geneos FAQ

Gateway - How to compute the difference in days between the current date and a given date

Use Rules Copied

This can be done by configuring a Rule and using its several functions.

Use case Copied

There may be a requirement to compute the number of remaining days from an expiry date. The Toolkit sampler below is configured to extract the value of the expiry date:

Toolkit no rule

To compute and display the remainingDays value, the rule must be configured with the following targets and logic:

The resulting dataview is:

Toolkit with rule

Here is the rule configuration for reference.

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

Was this topic helpful?