4. Date and Time
Format
The date and time formats as
well as the names of months and
weekdays are not saved in the
printer's battery backed-up
memory, but must be transmitted
to the printer after each power-
up.
Intermec EasyCoder 301 Direct Protocol 2.0 – Programmer's Guide Ed. 3
The formats for printing dates and time in connection with the com-
mands DATE$("F"), DATEADD$("F"), TIME$("F") and
TIMEADD$("F") (see chapter 6.5) can be specified by the com-
mands FORMAT DATE$ and FORMAT TIME$. With both these
commands, you should enter characters representing the various
types of information. The order and number of the characters de-
cides the format. You can also include separating characters like
periods, slashes, colons, etc. Note that the input string must be en-
closed by double quotation marks.
FORMAT DATE$ "<string>"
Y
M
D
Default:
Examples:
FORMAT DATE$ "YYYY.MM.DD"
1999.06.01
FORMAT DATE$ "DD/MM/YY"
01/06/99
FORMAT TIME$ "<string>"
H
h
M
S
P
p
Default:
Examples:
FORMAT TIME$ "HH:MM:SS"
14:15:37
FORMAT TIME$ "HH.MM"
14.15
FORMAT TIME$ "hh.MM.SS p"
2.15.37 p
FORMAT TIME$ "hh.MM PP"
2.15 PM
Chapter 6
Year
Month
Day
YYMMDD
Hour in 24-hour cycle (one digit per H; right-
justified)
Hour in 12-hour cycle (one digit per h; right-
justified)
Minute (one digit per M; right-justified)
Second (one digit per S; right-justified)
AM/PM (uppercase) in 12-hour cycle (one
character per P; left-justified)
am/pm (lowercase) in 12-hour cycle (one
character per p; left-justified)
HHMMSS
Setting Up the Printer
gives e.g.
gives e.g.
gives e.g.
gives e.g.
gives e.g.
gives e.g.
46