toDateOnly toDateOnly

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

類別

轉換

函式語法

toDateOnly(<parameters>)

參數

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

簽章與傳回的型別

toDateOnly(<date>)

toDateOnly(<string>)

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

範例

toDateOnly("2016-08-18")

傳回代表2016-08-18的dateOnly物件。

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9