toDateTimeOnly

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

類別

轉換

函式語法

toDateTimeOnly(<parameters>)

參數

參數 類型
ISO-8601格式的日期時間 字串
日期時間 dateTime

簽名和傳回的類型

toDateTimeOnly(<dateTime>)

toDateTimeOnly(<string>)

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

範例

toDateTimeOnly ("2016-08-18T23:17:59.123Z")

傳回2016-08-18T23:17:59.123。

toDateTimeOnly(now())

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now