DateTime.Value
The DateTime Control Object that is returned by the AddDateTime function has a Value property. The Value property can be used to set the time and date for the DateTime item on the Form.
Syntax |
ControlObject.Value = Date/Time Where ControlObject. is the name of the variable (declared in your script) that is used to store the DateTime Control Object that is returned by the AddDateTime function. |
Description |
Sets the date and time for the DateTime item on the Form. |
Arguments |
Date/Time {string} The "Date/Time" value has to be in a valid time format (see Using OPC Time Formats in the ClearSCADA Guide to Core Configuration). |
Returns |
String |
Example:
DateTime1.Value = "25/06/2006"
Where:
- DateTime1 is the name of the variable used to store the DateTime Control Object that is returned by the AddDateTime function (which would be defined earlier in the script)
- "25/06/2006" sets the date to 25th June 2006.