DateTime.Hour
From Xojo Documentation
Read-Only Property (As Integer )
The hour number of the time portion of the date, using a 24-hour clock.
Sample Code
The following example displays the current hour.
The hour number of the time portion of the date, using a 24-hour clock.
The following example displays the current hour.