GregorianCalendar: AddWeeks

AddWeeks

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



 Public Function AddWeeks(
	  ByRef Time As Variant,
	  ByVal Weeks As Long ) As cDateTime

Parameters

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

Return Values

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

Remarks

See Also

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