SYNTAX

<Date>.toDateTime

Converts the value in <Date> to data type DateTime. The date portion is the same as the <Date> value and the time portion is set to 12:00:00 AM in the current timezone.

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

The following Rulesheet uses .toDateTime to convert dateOnly1 to type DateTime and assign the value to dateTime1.