NAME
TimeBetweenDates — Return the absolute number of days between dates given.
SYNOPSIS
TimeBetweenDates FirstDate SecondDate
DESCRIPTION
Return Value
Time elapsed between two dates.
Arguments
FirstDateFirst date to find the time between.
SecondDateSecond date time find the time between.
More Info
Returns time in number of days.

Note that the return value will always be non-negative, no matter whether the first or second date comes first.

Note that while this returns an absolute value result, the caller can also use DateIsAfter to determine whether the first date is before or after the second. May want to do this to differentiate between when a date has already gone past versus when it is still to come.


For information regarding exceptions / errors, see here.
EXAMPLES
% TimeBetweenDates 2000-01-01 2000-01-02
1
SEE ALSO
TimeBetweenDatetimes, TimeLeftUntilTargetDate
KEYWORDS
arithmetic, date