CorDateTime: Subtract

Subtract

Subtracts either a CorDateTime instance or a TimeSpan instance from this CorDateTime instance.



 Public Function Subtract(
	  ByRef Value As Variant ) As Object

Parameters

Value
[ByRef] Variant. A CorDateTime or TimeSpan object to subtract from this instance.

Return Values

Object -  If subtracting a CorDateTime object from this, then a TimeSpan representing the difference in time between the two is returned. If subtracting a TimeSpan object from this instance, then a new CorDateTime with a difference of the TimeSpan obect from this instance is returned.

See Also

Project CorLib Overview

Class CorDateTime Overview