date

Purpose

The function date() converts a string value to a date/time value.

Syntax

date(argument)

Arguments

The function takes one required string argument that a user wants to format. The function takes all data formats, including dates written in words, e.g. "January 1, 2022".

Returned Value

Date/time value.

Example

Dataset

XPDL-rule

Result

January 1, 2022

rule: r1

{

query: {phrase(term(ee_months), char(digit), char(digit))}:m

result: Match = $m

attribute: Date = date($m)

}

1/1/2022