^STSet Date and Time (for Real-Time Clock)
^ST configures set Date and Time (for Real-Time Clock). It applies to the printer session and subsequent formats and changes job or printer-session state used while processing labels.
These are code examples only. This printer or session command does not produce a standalone label image.
aMonth
Sets month. It can be omitted when the documented default is suitable.
- Default
current month- Range
1–12- Required
- No
0112a variations
Compare values side by side; other parameters remain at representative defaults.
a = 01
Uses 01 for month while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
a = 12
Uses 12 for month while the other command values stay at representative defaults.
^ST12,01,1998,00,00,00,M
bDay
Sets day. It can be omitted when the documented default is suitable.
- Default
current day- Range
1–31- Required
- No
0131b variations
Compare values side by side; other parameters remain at representative defaults.
b = 01
Uses 01 for day while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
b = 31
Uses 31 for day while the other command values stay at representative defaults.
^ST01,31,1998,00,00,00,M
cYear
Sets year. It can be omitted when the documented default is suitable.
- Default
current year- Range
1998–2097- Required
- No
19982097c variations
Compare values side by side; other parameters remain at representative defaults.
c = 1998
Uses 1998 for year while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
c = 2097
Uses 2097 for year while the other command values stay at representative defaults.
^ST01,01,2097,00,00,00,M
dHour
Sets hour. It can be omitted when the documented default is suitable.
- Default
current hour- Range
0–23- Required
- No
0023d variations
Compare values side by side; other parameters remain at representative defaults.
d = 00
Uses 00 for hour while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
d = 23
Uses 23 for hour while the other command values stay at representative defaults.
^ST01,01,1998,23,00,00,M
eMinute
Sets minute. It can be omitted when the documented default is suitable.
- Default
current minute- Range
0–59- Required
- No
0059e variations
Compare values side by side; other parameters remain at representative defaults.
e = 00
Uses 00 for minute while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
e = 59
Uses 59 for minute while the other command values stay at representative defaults.
^ST01,01,1998,00,59,00,M
fSecond
Sets second. It can be omitted when the documented default is suitable.
- Default
current second- Range
0–59- Required
- No
0059f variations
Compare values side by side; other parameters remain at representative defaults.
f = 00
Uses 00 for second while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
f = 59
Uses 59 for second while the other command values stay at representative defaults.
^ST01,01,1998,00,00,59,M
gFormat
Sets format. It can be omitted when the documented default is suitable.
- Default
M- Required
- No
MAPg variations
Compare values side by side; other parameters remain at representative defaults.
g = A
Uses A for format while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,A
g = P
Uses P for format while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,P
g = M
Uses M for format while the other command values stay at representative defaults.
^ST01,01,1998,00,00,00,M
Primary source
Official Zebra reference
Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.