Share via


Hour Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the hour component of the date represented by this instance.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property Hour As Integer
public int Hour { get; }
public:
property int Hour {
    int get ();
}
member Hour : int with get
function get Hour () : int

Property Value

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

.NET Framework Security

See Also

Reference

DateTime Structure

System Namespace