cDateTime: CompareTo

CompareTo

Compares this instance to a passed in cDateTime instance.



 Public Function CompareTo(
	  ByRef Value As Variant ) As Long

Parameters

Value
[ByRef] Variant. The cDateTime or Date value to compare against this instance.

Return Values

Long -  A value indicating the relation to the passed in value. Negative indicates this instance is less than the argument, zero indicates the two values are equal, and positive indicates this value is greater than the argument.

Remarks

See Also

Project VBCorLib Overview Class cDateTime Overview cDateTime Properties cDateTime Methods AddYears DateOnly (get)