对于给定的日期表达式或日期时间表达式,返回指定月份数目以前或以后的日期。
语法
GOMONTH(dExpression | tExpression, nNumberOfMonths)
参数
dExpression
指定日期表达式。相对于此日期,gomonth( ) 函数返回日期。
tExpression
指定日期时间表达式。相对于此日期时间,gomonth( ) 函数返回日期。
nNumberOfMonths
指定从给定日期或日期时间开始的月数。如果 nNumberOfMonths 为正,gomonth( ) 函数返回给定日期或日期时间 nNumberOfMonths 个月以后的日期;如果 nNumberOfMonths 为负,gomonth( ) 函数返回给定日期或日期时间 nNumberOfMonths
个月以前的日期。
返回值类型
日期型