Xbasic
*days_between Function
Syntax
dim Result as N = *DAYS_BETWEEN(t1 as T, t2 as T)
Arguments
- t1Time
A datetime value.
- t2Time
A datetime value
Returns
- ResultNumeric
Returns the days between the specified datetime values. If t2 is a date later than t1, *DAYS_BETWEEN will return a negative value.
Description
Return difference of days between two dates or times.
Example
dim t1 as T dim t2 as T dim t3 as T t1 = {01/12/2016} t2 = {01/24/2016} t3 = {01/08/2016} ? *days_between(t2, t1) = 12 ? *days_between(t3, t1) = -4
See Also