Hour Function (Visual Basic)
Returns an Integer value from 0 through 23 representing the hour of the day.
Required. Date value from which you want to extract the hour.
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 using the locale settings of your code.
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)