GregorianCalendar: AddDays

AddDays

Adds a number of days to the date provided using Gregorian math.



 Public Function AddDays(
	  ByRef Time As Variant,
	  ByVal Days As Long ) As CorDateTime

Parameters

Time
[ByRef] Variant. This is a Date or CorDateTime to add a number of days to.
Days
[ByVal] Long. The number of days to be added to Time.

Return Values

CorDateTime -  A CorDateTime object with the new date.

Remarks

Using this method works exactly like using the AddDays method on the CorDateTime objects.

A new CorDateTime object is returned with the days added to the original Time. If a Date is passed in, a CorDateTime object is still returned.

A negative value can be supplied for Days.

See Also

Project CorLib Overview

Class GregorianCalendar Overview