toDateTimeOnly toDateTimeOnly

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

类别

转化

函数语法

toDateTimeOnly(<parameters>)

参数

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

签名和返回的类型

toDateTimeOnly(<dateTime>)

toDateTimeOnly(<string>)

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

示例

toDateTimeOnly ("2016-08-18")

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

toDateTimeOnly(now())

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9