Skip to command documentation
Supportedtextjobsession scope
^ST

Set 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.

Syntax
^STa,b,c,d,e,f,g
a

Month

Sets month. It can be omitted when the documented default is suitable.

Default
current month
Range
1–12
Required
No
Documented values0112

a variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

a = 01

Uses 01 for month while the other command values stay at representative defaults.

ZPLcaret-st-a-1.zpl
^ST01,01,1998,00,00,00,M

a = 12

Uses 12 for month while the other command values stay at representative defaults.

ZPLcaret-st-a-2.zpl
^ST12,01,1998,00,00,00,M
b

Day

Sets day. It can be omitted when the documented default is suitable.

Default
current day
Range
1–31
Required
No
Documented values0131

b variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

b = 01

Uses 01 for day while the other command values stay at representative defaults.

ZPLcaret-st-b-1.zpl
^ST01,01,1998,00,00,00,M

b = 31

Uses 31 for day while the other command values stay at representative defaults.

ZPLcaret-st-b-2.zpl
^ST01,31,1998,00,00,00,M
c

Year

Sets year. It can be omitted when the documented default is suitable.

Default
current year
Range
1998–2097
Required
No
Documented values19982097

c variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

c = 1998

Uses 1998 for year while the other command values stay at representative defaults.

ZPLcaret-st-c-1.zpl
^ST01,01,1998,00,00,00,M

c = 2097

Uses 2097 for year while the other command values stay at representative defaults.

ZPLcaret-st-c-2.zpl
^ST01,01,2097,00,00,00,M
d

Hour

Sets hour. It can be omitted when the documented default is suitable.

Default
current hour
Range
0–23
Required
No
Documented values0023

d variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

d = 00

Uses 00 for hour while the other command values stay at representative defaults.

ZPLcaret-st-d-1.zpl
^ST01,01,1998,00,00,00,M

d = 23

Uses 23 for hour while the other command values stay at representative defaults.

ZPLcaret-st-d-2.zpl
^ST01,01,1998,23,00,00,M
e

Minute

Sets minute. It can be omitted when the documented default is suitable.

Default
current minute
Range
0–59
Required
No
Documented values0059

e variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

e = 00

Uses 00 for minute while the other command values stay at representative defaults.

ZPLcaret-st-e-1.zpl
^ST01,01,1998,00,00,00,M

e = 59

Uses 59 for minute while the other command values stay at representative defaults.

ZPLcaret-st-e-2.zpl
^ST01,01,1998,00,59,00,M
f

Second

Sets second. It can be omitted when the documented default is suitable.

Default
current second
Range
0–59
Required
No
Documented values0059

f variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

f = 00

Uses 00 for second while the other command values stay at representative defaults.

ZPLcaret-st-f-1.zpl
^ST01,01,1998,00,00,00,M

f = 59

Uses 59 for second while the other command values stay at representative defaults.

ZPLcaret-st-f-2.zpl
^ST01,01,1998,00,00,59,M
g

Format

Sets format. It can be omitted when the documented default is suitable.

Default
M
Required
No
Documented valuesMAP

g variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

g = A

Uses A for format while the other command values stay at representative defaults.

ZPLcaret-st-g-1.zpl
^ST01,01,1998,00,00,00,A

g = P

Uses P for format while the other command values stay at representative defaults.

ZPLcaret-st-g-2.zpl
^ST01,01,1998,00,00,00,P

g = M

Uses M for format while the other command values stay at representative defaults.

ZPLcaret-st-g-3.zpl
^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.

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.