我对VBScript不太熟悉,只需要在极少数情况下使用它。目前,我正在尝试报告完成日期从今天起至-18个月至-16个月之间的项目。因此,在完成日期中输入的日期将是过去的日期。让我们说我要拉的字段标题为{完成日期}。
I am not too familiar with VBScript and have only needed to use it on rare occasions. Currently, I am trying to report projects that have a Completion Date that falls between -18 months and -16 months from today's date. So the date entered in the Completion Date would be in the past. Let's say the field I am pulling from is titled {Completion Date}.
我遇到了这个,并取代了"AddHours"。用"AddMonths"和"AddMonths"并将结束日期调整为(-16)。
I came across this, and replaced "AddHours" with "AddMonths" and adjusted the end date to (-16).
Code Snippet 推荐答案
Luke,
此论坛适用于VB Net ,而不是VBScript。
This forum is for VB Net, not VBScript.
更多推荐
日期范围的VBScript来自(现在)
发布评论