Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  275
Chapter 2 Program Instructions
WEEKNUMBER
Field of Application
 Function returning the number of the week for a specifi ed date.
Syntax WEEKNUMBER(<sexp>[,<nexp])
<sexp> is the date for which the week number will be returned 
(1-53).
<nexp> specifi es the calculating function (0-14) as listed below. 
Default is 0.
Remarks
WEEKNUMBER calculating function:
  <nexp>  Week #1 starts... 
  0  according to ISO 8601 (European standard):
 •  week #1 will start on the last Monday at or before the New Year, if January 1 occurs 
  on a Monday, Tuesday, Wednesday, or Thursday. 
 •  week #1 will start on the fi rst Monday after the New Year, if January 1 occurs on 
  a Friday, Saturday, or Sunday. 
  1  at Sunday in the fi rst week with 7 days in the actual year 
  2  at January 1:st, with each following week starting on a Sunday
  3  at Monday in the fi rst week with 7 days in the actual year 
  4  at January 1:st, with each following week starting on a Monday
  5  at Tuesday in the fi rst week with 7 days in the actual year 
  6  at January 1:st, with each following week starting on a Tuesday
  7  at Wednesday in the fi rst week with 7 days in the actual year 
  8  at January 1:st, with each following week starting on a Wednesday
  9  at Thurday in the fi rst week with 7 days in the actual year 
  10  at January 1:st, with each following week starting on a Thursday
  11  at Friday in the fi rst week with 7 days in the actual year 
  12  at January 1:st, with each following week starting on a Friday
  13  at Saturday in the fi rst week with 7 days in the actual year 
  14  at January 1:st, with each following week starting on a Saturday
 The date should be entered according to the syntax for the DATE$ variable, 
that is in the following order:
 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
 This  example  returns  the  week  number  of  December  29,  2000  using 
calculating function 2:
  PRINT WEEKNUMBER ("001229",2)
  yields for example:
  53










