SYNTAX

today

Returns the current system date when the rule is executed. This Date Only value is assigned the first time today is used in a Decision Service, then remains constant until the Decision Service finishes execution, regardless of how many additional times it is used. This means that every rule in a Rule Set using today will use the same Date Only value. No time portion is assigned

The Literals row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

The following Rulesheet uses today to determine how many days have elapsed between today and dateTime1, and assign a value to string1 based on the result.

A sample Ruletest provides three examples of dateOnly1. Assume today is equal to August 9, 2020. Input and Output panels are shown below: