Hour Function |
Main Menu |
Syntax
Hour(time)
The time argument is any
expression that can represent a time. If time contains Null, Null is returned.
The following example uses the Hour function to obtain the hour from the current
time:
Dim MyTime, MyHour
MyTime = Now
MyHour = Hour(MyTime) ' MyHour contains the number representing
' the current hour.
related to
Day Minute
Now Second
Time
|