toDateOnly toDateOnly
将参数转换为dateOnly类型值。 要了解有关数据类型的更多信息,请参阅此部分。
类别
转化
函数语法
toDateOnly(<parameters>)
参数
参数
            类型
          以“YYYY-MM-DD”形式表示的日期的字符串(XDM格式)。 还支持ISO-8601格式:仅考虑? 完整日期 ?部分(请参阅节)
            字符串
          日期时间
            dateTime
          不带时区的日期时间
            dateTimeOnly
          纪元的整数值(以毫秒为单位)
            整数
          签名和返回的类型
toDateOnly(<dateTime>)
toDateOnly(<dateTimeOnly>)
toDateOnly(<string>)
toDateOnly(<integer>, <integer>, <integer>)
返回诲补迟别翱苍濒测类型值。
示例
toDateOnly("2023-08-18")
toDateOnly("2023-08-18T00:00:00.000Z")
toDateOnly("2023-08-18T00:00:00")
所有参数都返回表示2023-08-18的诲补迟别翱苍濒测对象。
toDateOnly(#{ExperiencePlatform.ProfileFieldGroup.person.birthDate})
返回诲补迟别翱苍濒测。
recommendation-more-help
            
          b22c9c5d-9208-48f4-b874-1cefb8df4d76