GregorianCalendar: AddMonths

AddMonths

Returns a cDateTime this is the specified number of Months from the original Time.



 Public Function AddMonths(
	  ByRef Time As Variant,
	  ByVal Months As Long ) As cDateTime

Parameters

Time
[ByRef] Variant. The time to add the specified number of Months to.
Months
[ByVal] Long. The number of Months to be added to Time. This can be negative.

Return Values

cDateTime -  Returns a cDateTime with the specified number of Months added.

Remarks

See Also

Project VBCorLib Overview Class GregorianCalendar Overview GregorianCalendar Properties GregorianCalendar Methods AddMinutes AddSeconds