Time.Format property
- Last UpdatedJul 19, 2024
- 1 minute read
The Time.Format property is a read-write string property that gets or sets the date and time formats of the alarm records in the Alarm Control.
You can either use the .NET time format or the default format. Set the Time.Type property to determine which time format type to use.
Syntax
result = AlarmClient.Time.Format;
AlarmClient.Time.Format = TmFormat;
Example
This example shows the time format in French format (day/month/year) using the .NET datetime type.
AlarmClient1.Time.Type = 1;
AlarmClient1.Time.Format = "dd/MM/yyyy";
Remarks
For more information about the .NET time format, see Set a .NET DateTime format.
For more information about the default time format, see Set the time format.