InTouchDateTime
- Last UpdatedNov 17, 2021
- 1 minute read
The InTouchDateTime property is a read-write property that gets or sets the timestamp for the data insert using the InTouch HMI software Date format.
Syntax
aaHistClientSingleValueEntry.InTouchDateTime = real;
Result = aaHistClientSingleValueEntry.InTouchDateTime;
Remarks
The InTouchDateTime property reflects the value of the DateTime property, but it is expressed in the InTouch HMI software $DateTime format. The DateTime property is expressed in the Date format. For more information on the $DateTime format, see the InTouch HMI software documentation.
If this property is set -1, the current date and time are used for the insert.
If the DateTime property is set to 0, the current date and time are returned for the InTouchDateTime property.
Setting this property also updates the DateTime and DateTimeString properties, and vice-versa.
The DateTime property supports dates starting from 12/30/1899. The InTouch HMI software supports dates starting from 1/1/1970. Therefore, if the DateTime property is set to a date prior to 1/1/1970, the InTouchDateTime property are set to -1. To support dates prior to 1/1/1970, use the DateTimeString property.
The default value is -1.
Example
The following example sets the timestamp for the insert to the current time (reflected by the $DateTime system tag in the InTouch HMI software).
aaHistClientSingleValueEntry1.InTouchDateTime = $DateTime;