Converts an argument value into a date only value.
Conversion
toDateOnly(<parameters>)
Parameter | Type |
---|---|
date in ISO-8601 or “YYYY-MM-DD” format (XDM Date format) | string |
date | date |
toDateOnly(<date>)
toDateOnly(<string>)
Return a datetime without considering time zone.
toDateOnly("2016-08-18")
returns a dateOnly object representing 2016-08-18.