如何从公式中的 DateAdd 中删除时间
How do I remove the time from DateAdd within a formula
我有一个公式可以根据特定条件吐出字符串。大多数情况下,标准要求将日期添加几天。但是,在一种情况下,它需要增加 6 个月。所以我用了
DateAdd('m', 6, {client_record_sales_off.close_date})
如果它本身就是一个字段,我可以使用日期格式来仅显示日期。但是,由于它是更大公式的一部分,我无法做到这一点。有没有办法在使用更大的公式时删除时间戳?
if {@pullExistence} = "New" and {#5Count} = 1 then
totext({{client_record_sales_off.close_date} + 3)
else if {@pullExistence} = "Existing" and
IsNull({client_prior.assessment_date}) then (DateAdd('m', 6,
{client_record_sales_off.close_date}) & " 6 Month Review")
else if {@pullExistence} = "New" and IsNull({client_prior.assessment_date})
then (totext({client_record_sales_off.close_date} + 14) & " 14 Day review")
谢谢!
这样使用:
CDATE(DateAdd('m', 6, {client_record_sales_off.close_date}))
我有一个公式可以根据特定条件吐出字符串。大多数情况下,标准要求将日期添加几天。但是,在一种情况下,它需要增加 6 个月。所以我用了
DateAdd('m', 6, {client_record_sales_off.close_date})
如果它本身就是一个字段,我可以使用日期格式来仅显示日期。但是,由于它是更大公式的一部分,我无法做到这一点。有没有办法在使用更大的公式时删除时间戳?
if {@pullExistence} = "New" and {#5Count} = 1 then
totext({{client_record_sales_off.close_date} + 3)
else if {@pullExistence} = "Existing" and
IsNull({client_prior.assessment_date}) then (DateAdd('m', 6,
{client_record_sales_off.close_date}) & " 6 Month Review")
else if {@pullExistence} = "New" and IsNull({client_prior.assessment_date})
then (totext({client_record_sales_off.close_date} + 14) & " 14 Day review")
谢谢!
这样使用:
CDATE(DateAdd('m', 6, {client_record_sales_off.close_date}))