FiscalPrinter.SetDate Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Sets the printer's date and time.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub SetDate ( _
newDate As DateTime _
)
public abstract void SetDate (
DateTime newDate
)
public:
virtual void SetDate (
DateTime newDate
) abstract
public abstract void SetDate (
DateTime newDate
)
public abstract function SetDate (
newDate : DateTime
)
Parameters
- newDate
DateTime value.
Remarks
The date and time is passed as a DateTime value. SetDate can be called only while DayOpened is false.
SetDate may throw a PosControlException with the following ErrorCode:
Value |
Description |
Illegal |
The printer has already begun the fiscal day (see the DayOpened property). |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
DayOpened