Hour Function

Syntax

Hour(dateexpr)

Group

Time/Date

Description

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

Parameter Description
dateexpr Return the hour of the day for this date value. If this value is Null then Null is returned.

See Also: Minute( ), Second( ), Time( ).

Example

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