Powered by Zoomin Software. For more details please contactZoomin

Rule Language

To dateTime Casting a string to a dateTime

  • Last Updated: October 26, 2026
  • 1 minute read
    • Corticon.js
    • Version 2.4
    • Documentation

SYNTAX

<String>.toDateTime

Converts the value in <String> to data type DateTime ONLY if all characters in <String> correspond to a valid Date, Time, or DateTime mask (format). For complete details on DateTime masks, see Rule Modeling Guide.

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

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

Alert