GregorianCalendar: AddYears

AddYears

Returns a CorDateTime this is the specified number of Years from the original Time.



 Public Function AddYears(
	  ByRef Time As Variant,
	  ByVal Years As Long ) As CorDateTime

Parameters

Time
[ByRef] Variant. The Date or CorDateTime to add the specified number of Years to.
Years
[ByVal] Long. The number of Years to be added to Time. This can be negative.

Return Values

CorDateTime -  Returns a CorDateTime with the specified number of Years added.

See Also

Project CorLib Overview

Class GregorianCalendar Overview