Calendar: AddYears

AddYears

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



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

Parameters

Time
[ByRef] Variant. The time 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

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

Remarks

See Also

Project VBCorLib Overview Class Calendar Overview Calendar Properties Calendar Methods AddWeeks CalendarWeekRule