dateonly

Purpose

The function dateonly() returns the date value from the Date/time argument.

Syntax

dateonly(date(argument))

Arguments

The function takes the function date() as a required argument.

Returned Value

Returns a date value in the date/time data type.

Example

Dataset

XPDL-rule

Result

05/17/2022 19:50

rule: r1

{

query: {phrase({phrase(char(digit), "/", char(digit), "/", char(digit))}:date, {phrase(char(digit), ":", char(digit))}:time)}:m

result: Match = $m

attribute: Date = dateonly(date($m))

}

5/17/2022