37
Intermec EasyCoder 301 Direct Protocol 2.0 – Programmer's Guide Ed. 3
Chapter 4 Label Design
9. Printable Data
Commands,
cont'd.
WEEKNUMBER ("<date>")
Returns the weeknumber from a given date or the current date.
<date>
can be specified in the standard format
"YYMMDD"
or by a
DATE$
command.
Examples:
PT WEEKNUMBER("990601")
↵
PT WEEKNUMBER(DATE$)
↵
DATEADD$ (["<original date>",]<number of days>[,"F"])
Adds or subtracts a certain number of days to the current date or
optionally to a specified date.
<original date>
optional; it is entered in the standard date
format
"YYMMDD"
. Note that the original
date must be enclosed by double quotation
marks.
<number of days>
the number of days to be added to or sub-
tracted from the current date or, optionally,
the date specified by <original date>. In case
of subtraction, the <number of days> should
be preceded by a minus sign (-).
<"F">
an optional flag specifying that the result
should be returned in the format specified by
FORMAT DATE$
instead of the standard
format
YYMMDD
.
Example:
PT DATEADD$("990601",-15,"F")
↵