Date Intrinsic Functions - Difference Method

Return the difference between 2 dates in days

Member of Date Intrinsic Functions (PRIM_LIBI.IDateIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting number
Object*Input (Optional)DateDate to be compared to

Details

Difference returns the number of days between the subject and object days in days.

Example

This example will return a value of 1.
#Result := #Tomorrow.Difference(#Today)
Reversing the parameters results in a negative difference of -1. i.e One day before.
#Result := #Today.Difference(#Tomorrow)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2