Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 760
Chapter 2 Program Instructions
DATEDIFF
Field of Application
 Function returning the difference between two dates as a  number 
of days.
Syntax DATEDIFF(<sexp
1
>,<sexp
2
>) 
<sexp
1
> is one of two dates (date 1).
<sexp
2
> is the other of two dates (date 2).
Remarks
 To  get  the  result  as  a  positive  numeric  value,  the  two  dates,  for  which 
the difference is to be calculated, should be entered with the earlier of 
the dates (date 1) fi rst and the later of the dates (date 2) last, see the 
fi rst example below. 
 If the later date (date 2) is entered fi rst, the resulting value will be negative, 
see the second example below. 
 Both dates should be entered according to the syntax for the DATE$ variable, 
that is in the order YYMMDD, where:
 YY  =  Year  Last two digits  (for example 2000 = 00)
 MM  =  Month  Two digits  (01-12)
 DD  =  Day  Two digits  (01-28|29|30|31)
 Example: December 1, 2000 is entered as "001201".
 The built-in calendar corrects  illegal values for the years  1980-2048, for 
example the illegal date 001232 will be corrected to 010101.
Examples
 Calculation of the difference in days between the dates October 1, 2000 
and November 30, 2000:
  10   A%=DATEDIFF("001001","001130")
  20   PRINT A%   
  RUN
  yields:
  60    
 If the later date is entered fi rst, the result will be negative:
  10   A%=DATEDIFF("001130","001001")
  20   PRINT A%   
  RUN
  yields:
  -60










