toDateTimeOnly toDateTimeOnly
Converts an argument value into a date time only value.
Category
Conversion
Function syntax
toDateTimeOnly(<parameters>)
Parameters
Parameter
Type
date time in ISO-8601 or “YYYY-MM-DD” format (XDM Date format)
string
date time
dateTime
Signatures and returned types
toDateTimeOnly(<dateTime>)
toDateTimeOnly(<string>)
Return a datetime without considering time zone.
Examples
toDateTimeOnly ("2023-08-18")
returns a dateTime representing 2023-08-18T00:00:00.000
toDateTimeOnly(now())
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76