日期范围的VBScript来自(现在) [英] VBScript for Date Range from (Now)

查看:74
本文介绍了日期范围的VBScript来自(现在)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对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来自(现在)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆