toDateTimeOnly

Last update: 2024-03-13
  • Created for:
  • Experienced
    Developer

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())

On this page