toDateOnly

Converts an argument value into a date only value.

Category

Conversion

Function syntax

toDateOnly(<parameters>)

Parameters

Parameter Type
date in ISO-8601 or “YYYY-MM-DD” format (XDM Date format) string
date date

Signatures and returned types

toDateOnly(<date>)

toDateOnly(<string>)

Return a datetime without considering time zone.

Examples

toDateOnly("2016-08-18")

returns a dateOnly object representing 2016-08-18.

On this page