【发布时间】:2013-07-02 05:41:03
【问题描述】:
我在 Report Builder 1.0 中有一个报告,其中我编写了一个公式来计算 startdate 和 enddate 之间的天数。为此,我以这种方式使用了DATEDIFF 函数:
DATEDIFF(DAY, TODAY(), column from table which has end date)
假设,如果今天的日期是 1 July 2013 并且列将结束日期发送为 10 July 2013,那么 DATEDIFF 函数将返回“10 天”,而它应该将输出返回为值“9 天”。为什么返回 10 天而不是 9 天?
【问题讨论】:
标签: reporting-services reportbuilder