本帖最后由 hessen 于 2015-1-16 11:08 编辑
将下面这段复制到管理数据表自定义标签公式即可- 今天@CONVERT(VARCHAR,CDATE,111) = CONVERT(VARCHAR,GETDATE(),111)|昨天@CONVERT(VARCHAR,CDATE,111) = CONVERT(VARCHAR,DateAdd("d",-1,GETDATE()),111)|前天@CONVERT(VARCHAR,CDATE,111) = CONVERT(VARCHAR,DateAdd("d",-2,GETDATE()),111)|最近一周@CONVERT(VARCHAR,CDATE,111) >= CONVERT(VARCHAR,DateAdd("d",-7,GETDATE()),111)|本月@YEAR(CDATE) = YEAR(GETDATE()) AND MONTH(CDATE) = MONTH(GETDATE())|今年@YEAR(CDATE) = YEAR(GETDATE())|去年@YEAR(CDATE) = YEAR(GETDATE())-1|全部@1=1
复制代码 |
|
hessen