Corticon Studio: Rule Language Guide
:
Rule operator details and examples
:
To date: Casting a dateTime to a date
Try Corticon Now
To date: Casting a dateTime to a date
SYNTAX
<DateTime>
.toDate
DESCRIPTION
Converts the value in
<DateTime>
to a Date datatype, containing only the date portion of the DateTime. If
<DateTime>
contains no date information, then the system epoch is used.
USAGE RESTRICTIONS
The Operators row of the table in
Summary Table of Vocabulary Usage Restriction
applies. No special exceptions.
RULESHEET EXAMPLE
The following Rulesheet uses
.toDate
to convert
dateTime1
and
DateTime2
to Date datatypes and assign the values to
dateTime1
and
dateTime2
.
SAMPLE TEST