Hour Function (Visual Basic)
Returns an Integer value from 0 through 23 that represents the hour of the day.
This example uses the Hour function to obtain the hour from a specified time. In the development environment, the time literal is displayed in short time format based on the locale settings of your code.
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)