02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Program Instructions<br />

WEEKDAY$<br />

Purpose Returning the name of the weekday from a specified date.<br />

Syntax WEEKDAY$()<br />

is the date for which the name of the weekday, according to a<br />

list of weekday names created by means of NAME WEEKDAY$<br />

statement , will be returned.<br />

Remarks This function returns the name of the weekday according to a list of weekday<br />

names specified by means of NAME WEEKDAY$ statement or—if<br />

the name is missing—the full English name in lowercase characters, for<br />

example “friday".<br />

The date should be entered according to the syntax for the DATE$ variable,<br />

that is in the following order:<br />

YY = Year Last two digits (for example 2003 = 03)<br />

MM = Month Two digits (01-12)<br />

DD = Day Two digits (01-28|29|30|31)<br />

Example: December 1, 2003 is entered as "031201".<br />

The built-in calendar corrects illegal values for the years 1980-2048, for<br />

example the illegal date 031232 will be corrected to 040101.<br />

Example This example shows how to make the printer return the name of the weekday<br />

as a three-letter English abbreviation in connection with a formatted<br />

date:<br />

10 FORMAT DATE$ ", MM/DD/YY"<br />

20 DATE$="031201"<br />

30 NAME WEEKDAY$ 1, "Mon"<br />

40 NAME WEEKDAY$ 2, "Tue"<br />

50 NAME WEEKDAY$ 3, "Wed"<br />

60 NAME WEEKDAY$ 4, "Thu"<br />

70 NAME WEEKDAY$ 5, "Fri"<br />

80 NAME WEEKDAY$ 6, "Sat"<br />

90 NAME WEEKDAY$ 7, "Sun"<br />

100 PRINT WEEKDAY$ (DATE$) + DATE$("F")<br />

RUN<br />

yields:<br />

MON, 12/01/03<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!