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
8fe209f2-717b-4d36-904c-71a9532007af