DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: Hour for VBS

Method: Hour for VBS

Specifies the hour of the day in a time expression.

vHour = Object.Hour(Time)
ObjectVBS
Object with this method. You do not need to specify this object.
TimeVariant
Specifies a time expression.
vHourVariant
Receives an integer between 0 and 23 which represents the hour of the day.

The following example returns the current hour:

Dim Myvar
MyVar = Hour(Now)
Call MsgBox(MyVar)

Related Topics

DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year

In This Section
Was this information helpful?