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: 3.0.3271
Syntax
public static void SetClock(
	string connectionString,
	string dateTime
)

Parameters

connectionString  String
The connection string.
dateTime  String
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