cDateTime: AddYears

AddYears

Adds a specified number of years to the current date., returning a new cDateTime instance with the calcuated value.



 Public Function AddYears(
	  ByVal Value As Long ) As cDateTime

Parameters

Value
[ByVal] Long. The number of years to be added.

Return Values

cDateTime -  The new cDateTime instance containing the calculated value.

Remarks

See Also

Project VBCorLib Overview Class cDateTime Overview cDateTime Properties cDateTime Methods AddTicks CompareTo