將引數值轉換為僅限日期時間的值。
轉換
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())