Hour Function

Syntax

Hour(dateexpr)

Group

Time/Date

Description

Returns the hour of the day (0 to 23).

Parameters

Parameters Description
dateexpr Returns the hour of the day for this date value. If this value is Null, Null is returned.

Example


Sub Main
    Debug.Print Hour(#12:00:01 AM#) ' 0
End Sub

See also

Minute( ), Second( ), Time( )