Click or drag to resize
DateTimeHour Property
Gets the hour component of the date represented by this instance.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int Hour { get; }

Return Value

Type: Int32
The hour component, expressed as a value between 0 and 23.
See Also