OpenTypeMethods.Hour(Object) Method

Definition

Returns the hour value of the given DateTime instance.

public:
 static System::Object ^ Hour(System::Object ^ dateTime);
public static object Hour (object dateTime);
static member Hour : obj -> obj
Public Shared Function Hour (dateTime As Object) As Object

Parameters

dateTime
Object

A DateTime object.

Returns

The hour value of the given DateTime instance.

Applies to