toDateTimeOnly toDateTimeOnly

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

類別

轉換

函式語法

toDateTimeOnly(<parameters>)

參數

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

簽章與傳回的型別

toDateTimeOnly(<dateTime>)

toDateTimeOnly(<string>)

傳回日期時間而不考慮時區。

範例

toDateTimeOnly ("2023-08-18")

傳回代表2023-08-18T00的dateTime:00:00.000

toDateTimeOnly(now())

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