Click or drag to resize

PrinterUtilSetClock Method

Set the RTC time and date on the printer.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
public static void SetClock(
	string connectionString,
	string dateTime
)

Parameters

connectionString
Type: SystemString
The connection string.
dateTime
Type: SystemString
Format MM-dd-yyyy HH:mm:ss.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
ZebraPrinterLanguageUnknownExceptionIf the printer language could not be determined.
ZebraIllegalArgumentExceptionIf the format of dateTime is invalid.
NotALinkOsPrinterExceptionThis feature is only available on Link-OS™ printers.
Remarks
See ConnectionBuilder for the format of connectionString.
See Also