SYNTAX

<DateTime>.toDate

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.

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

The following Rulesheet uses .toDate to convert dateTime1 and DateTime2 to Date datatypes and assign the values to dateTime1 and dateTime2.