Set a .NET time format
- Last UpdatedOct 09, 2024
- 1 minute read
You can set the .NET datetime format in which the AlarmApp shows the alarm and event records. You can either use a predefined datetime format, or compose one. The predefined date format is based on the short date format setting of the operating system and may vary from computer to computer.
To set the .NET datetime 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.
-
Click Time Settings. The Time Settings page appears.
-
In the Time Format area, do the following:
-
Select the Use .NET Time Format check box.
-
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 time format string.
-
-
If you want to customize the datetime format, modify the codes in the box as in the table below. For more information, see the Microsoft Knowledge database on .NET datetime formats.
Code
Purpose
Example
M
Single-digit month
9
MM
Two-digit month
04
MMM
Three-letter month
Mar
MMMM
Full month name
March
d
Single-digit day
3
dd
Two-digit day
03
ddd
Abbreviated day of the week
Mon
dddd
Day of the week
Monday
yyyy
Four-digit year
2018
yy
Two-digit year
18
HH
Hours in 24 hour format
13
hh
Hours in 12 hour format
10
mm
Minutes
33
ss
Seconds
34
fff
Milliseconds
234
tt
AM or PM
PM
-
Click OK.