toDateTimeOnly toDateTimeOnly

将参数值转换为仅日期时间值。

类别

转化

函数语法

toDateTimeOnly(<parameters>)

参数

参数
类型
ISO-8601或“YYYY-MM-DD”格式的日期时间(XDM日期格式)
字符串
日期时间
dateTime

签名和返回的类型

toDateTimeOnly(<dateTime>)

toDateTimeOnly(<string>)

返回不考虑时区的日期时间。

示例

toDateTimeOnly ("2023-08-18")

返回表示2023-08-18T00的日期时间:00:00.000

toDateTimeOnly(now())

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76