GOMONTH( ) Function

Example   See Also

Returns the date that is a specified number of months before or after a given Date or DateTime expression.

Syntax

GOMONTH(dExpression | tExpression, nNumberOfMonths)

Returns

Date

Arguments

dExpression

Specifies a date expression for which GOMONTH( ) returns the date.

tExpression

Specifies a datetime expression for which GOMONTH( ) returns the date.

nNumberOfMonths

Specifies the number of months from the date or datetime. If nNumberOfMonths is positive, GOMONTH( ) returns a date that is nNumberOfMonths months after the date or datetime. If nNumberOfMonths is negative, GOMONTH( ) returns a date that is nNumberOfMonths months before the date or datetime.