DateAndTime::Hour Method (DateTime)
Returns an Integer value from 0 through 23 representing the hour of the day.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
You can also obtain the hour of the day by calling DatePart and specifying DateInterval.Hour for the Interval argument.
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.
Available since 1.1
Available since 2.0