Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 167
Chapter 2 Program Instructions
NAME DATE$
Field of Application
Statement for formatting the month parameter in return strings of
DATE$("F") and DATEADD$(...,"F").
Syntax NAME DATE$ <nexp>, <sexp>
<nexp> is the month number (1-12).
<sexp> is the desired name of the month.
Remarks
This statement allows you to assign names to the different months in
any form and language you like. The names will be returned instead
of the corresponding numbers in connection with DATE$("F") and
DATEADD$("F") instructions, provided that a FORMAT DATE$ statement
has been executed.
The number of characters assigned to represent months in the FORMAT
DATE$ statement decides how much of the names, as speci ed in the
NAME DATE$ statement, will be returned. The names will be truncated
at the left side. For example:
FORMAT DATE$ "YY.MMM:DD"
NAME DATE$ 1,"JANUARY"
PRINT DATE$("F")
yields for example:
01.ARY.06
Usually, it is best to restrict the month parameter in the FORMAT DATE$
statement to 2 or 3 characters (MM or MMM) and enter the names of the
months in the NAME DATE$ statement accordingly.
Example
This example shows how to make the printer return dates in accordance
with British standard:
10 DATE$="010115"
20 NAME DATE$ 1, "JAN"
30 NAME DATE$ 2, "FEB"
40 NAME DATE$ 3, "MAR"
50 NAME DATE$ 4, "APR"
60 NAME DATE$ 5, "MAY"
70 NAME DATE$ 6, "JUN"
80 NAME DATE$ 7, "JUL"
. . . . .
140 FORMAT DATE$ "MMM DD, YYYY"
150 PRINT DATE$("F")
RUN
yields:
JAN 15, 2001