Set the time format
- Last UpdatedSep 19, 2024
- 1 minute read
You can set the time format in which the Alarm Control shows the alarm and event records. You can either use a predefined datetime format, or compose one.
To set the time format
-
Double-click the Alarm Control on the canvas. The Edit Animations dialog box appears.
-
Select Time Settings.
-
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
2008
%y
Two-digit year
08
%#x
Full day and date
Tuesday, March 11, 2008
%H
Hours in 24 hour format
14
%I
Hours in 12 hour format
2
%M
Minutes
55
%S
Seconds
34
%s
Milliseconds
223
%p
AM or PM
PM
-
Click OK.