Set a time format
- Last UpdatedOct 09, 2024
- 1 minute read
You can set the time format in which the AlarmApp shows the alarm and event records. You can either use a predefined datetime format, or compose one.
To set the time format
-
Select the AlarmApp placed on a pane.
-
Select the Properties grid to show AlarmApp properties.
-
Select the ellipsis button shown at the right of the Configuration field to show the AlarmApp's Configuration dialog box.
-
Select the Time Settings tab.
-
In the Time Format area, do the following:
-
Make sure Use .NET Time Format is cleared.
-
Select date format codes from the list at the right. The equivalent date format code appears in the box above.
-
Select time format codes from the list at the right. The equivalent time format code is appended to the date format string.
If you want to customize the datetime format, modify the codes in the box as follows:
Code
Purpose
Example
%m
Two-digit month
03
%b
Three-letter month
Mar
%B
Full month name
March
%d
Two-digit day
17
%Y
Four-digit year
2018
%y
Two-digit year
18
%#x
Full day and date
Monday, March 26, 2018
%H
Hours in 24 hour format
14
%I
Hours in 12 hour format
2
%M
Minutes
54
%S
Seconds
34
%s
Milliseconds
333
%p
AM or PM
PM
-
-
Click OK.