
Return the difference between 2 dates in days
Member of Date Intrinsic Functions (PRIM_LIBI.IDateIntrinsics)
Parameters
Name | Type | Data Type | Description |
---|---|---|---|
Result | *Result (Optional) | Integer | Resulting number |
Object | *Input (Optional) | Date | Date 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
LANSA Version 15, April 2020