You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Date Intrinsic Functions - Difference Method
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

All Component Classes
Technical Reference

  • No labels