将参数值转换为仅限日期时间的值。
转化
toDateTimeOnly(<parameters>)
参数 | 类型 |
---|---|
日期时间(ISO-8601或“YYYY-MM-DD”格式(XDM日期格式) | 字符串 |
日期时间 | dateTime |
toDateTimeOnly(<dateTime>)
toDateTimeOnly(<string>)
不考虑时区而返回日期时间。
toDateTimeOnly ("2016-08-18")
返回表示2016-08-18T00的dateTime:00:00.000
toDateTimeOnly(now())