toDateTimeOnly

將參數值轉換為僅日期時間值。

類別

轉換

函式語法

toDateTimeOnly(<parameters>)

參數

參數 類型
ISO-8601或「YYYY-MM-DD」格式的日期時間(XDM日期格式) 字串
日期時間 日期時間

簽名和返回的類型

toDateTimeOnly(<dateTime>)

toDateTimeOnly(<string>)

返回不考慮時區的日期時間。

範例

toDateTimeOnly ("2016-08-18")

返回代表2016-08-18T00的dateTime:00:00.000

toDateTimeOnly(now())

本頁內容