Hour Function
SyntaxGroupHour(dateexpr)
Time/DateDescription
Return the hour of the day (0 to 23).
See Also
Parameters Description dateexpr Return the hour of the day for this date value. If this value is Null then Null is returned.
Minute( ), Second( ), Time( )
Sub Main Debug.Print Hour(#12:00:01 AM#) ' 0 End Sub