Skip to command documentation
Device onlyprinterdevicesession scope
^KD

Select Date and Time Format (for Real Time Clock)

^KD configures select Date and Time Format (for Real Time Clock). It applies to the printer session and subsequent formats and controls printer hardware or connectivity rather than label pixels.

ZPLr compatibility note

  • Recognized by the renderer but has no label-raster effect.

These are code examples only. This printer or session command does not produce a standalone label image.

Syntax
^KDa
a

Value of date and time format

Sets value of date and time format. It can be omitted when the documented default is suitable.

Default
0
Required
No
Documented values01234

a variations

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

Side-by-side comparison3 variations

a = 0

Uses 0 for value of date and time format while the other command values stay at representative defaults.

ZPLcaret-kd-a-1.zpl
^KD0

a = 1

Uses 1 for value of date and time format while the other command values stay at representative defaults.

ZPLcaret-kd-a-2.zpl
^KD1

a = 4

Uses 4 for value of date and time format while the other command values stay at representative defaults.

ZPLcaret-kd-a-3.zpl
^KD4

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation