skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Today
 

Try Corticon Now

Today

SYNTAX

today

DESCRIPTION

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

USAGE RESTRICTIONS

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

RULESHEET EXAMPLE

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.

SAMPLE TEST

A sample Ruletest provides three examples of dateOnly1. Assume today is equal to Friday,November 23,2007. Input and Output panels are shown below: