Corticon Studio: Rule Language Guide
:
Rule operator details and examples
:
To dateTime: Casting a time to a dateTime
Try Corticon Now
To dateTime: Casting a time to a dateTime
SYNTAX
<Time>
.toDateTime
DESCRIPTION
Converts the value in
<Time>
to data type DateTime ONLY if all characters in
<Time>
correspond to a valid DateTime mask (format). The time portion is the same as the
<Time>
value and the date portion is the epoch (see
.toTime
operator)
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
.toDateTime
to convert
timeOnly1
to type DateTime and assign the value to
dateTime1
.
SAMPLE TEST