HourOfDay Enum

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Indicates the hour of the day.

C#
public enum HourOfDay
Inheritance
HourOfDay

Fields

Name Value Description
Zero 0

12:00 A.M. (midnight)

One 1

1:00 A.M.

Two 2

2:00 A.M.

Three 3

3:00 A.M.

Four 4

4:00 A.M.

Five 5

5:00 A.M.

Six 6

6:00 A.M.

Seven 7

7:00 A.M.

Eight 8

8:00 A.M.

Nine 9

9:00 A.M.

Ten 10

10:00 A.M.

Eleven 11

11:00 A.M.

Twelve 12

12:00 P.M. (noon)

Thirteen 13

1:00 P.M.

Fourteen 14

2:00 P.M.

Fifteen 15

3:00 P.M.

Sixteen 16

4:00 P.M.

Seventeen 17

5:00 P.M.

Eighteen 18

6:00 P.M.

Nineteen 19

7:00 P.M.

Twenty 20

8:00 P.M.

TwentyOne 21

9:00 P.M.

TwentyTwo 22

10:00 P.M.

TwentyThree 23

11:00 P.M.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10