17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

WEEKDAY$<br />

Chapter 2 Program Instructions<br />

Field of Application 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<br />

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

WEEKDAY$ 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 the<br />

name is missing – the full English name in lowercase characters, e.g. “friday”.<br />

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

i.e. in the order YYMMDD, where:<br />

YY = Year Last two digits (e.g. 1999 = 99)<br />

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

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

Example: June 1, 1999 is entered as 990601.<br />

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

illegal date 991232 will be corrected to 000101.<br />

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

as a 3-letter English abbreviation in connection with a formatted date:<br />

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

20 DATE$="990601"<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<br />

RUN<br />

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

yields:<br />

Sun, 06/01/99<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 242

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

Saved successfully!

Ooh no, something went wrong!