toDateOnly

將引數轉換為dateOnly型別值。 如需瞭解資料型別的詳細資訊,請參閱本節 區段.

類別

轉換

函式語法

toDateOnly(<parameters>)

參數

參數 類型
以「YYYY-MM-DD」(XDM格式)表示日期的字串表示法。 也支援ISO-8601格式:僅限 完整日期 部分已列入考量(請參閱 RFC 3339,5.6節 字串
日期時間 dateTime
沒有時區的日期時間 dateTimeOnly
紀元的整數值(以毫秒為單位) 整數

簽章與傳回的型別

toDateOnly(<dateTime>)

toDateOnly(<dateTimeOnly>)

toDateOnly(<string>)

toDateOnly(<integer>, <integer>, <integer>)

傳回dateOnly型別值。

範例

toDateOnly("2016-08-18")

toDateOnly("2016-08-18T00:00:00.000Z")

toDateOnly("2016-08-18T00:00:00")

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

toDateOnly(#{ExperiencePlatform.ProfileFieldGroup.person.birthDate})

傳回dateOnly。

本頁內容