Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  273
Chapter 2 Program Instructions
WEEKDAY 
Field of Application
 Function returning the weekday of a specifi ed date.
Syntax WEEKDAY(<sexp>)
<sexp> is  the  date  in  DATE$  format  from  which  the  weekday 
will be returned.
Remarks
 This function returns the weekday as a numeric constant:
 1 = Monday
 2 = Tuesday
 3 = Wednesday
 4 = Thursday
 5 = Friday
 6 = Saturday
 7 = Sunday
 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.
Example
 In this example the weekday for the current date is printed on the screen 
of the host (another way is to use NAME WEEKDAY$ statement and 
WEEKDAY$ function):
  10   B$=DATE$
  20   A% = WEEKDAY (B$)
  30   IF A% = 1 THEN PRINT "MONDAY"
  40   IF A% = 2 THEN PRINT "TUESDAY"
  50   IF A% = 3 THEN PRINT "WEDNESDAY"
  60   IF A% = 4 THEN PRINT "THURSDAY"
  70   IF A% = 5 THEN PRINT "FRIDAY"
  80   IF A% = 6 THEN PRINT "SATURDAY"
  90   IF A% = 7 THEN PRINT "SUNDAY"
  RUN
  yields for example:
  THURSDAY










