From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aXojo.Core.Date.Hour

Supported on Mobile (iOS).

The hour number for the time portion of the date, using a 24-hour clock. For example, 20 is the value for 8 pm.

Sample Code

Get the current hour:

Var d As Xojo.Core.Date = Xojo.Core.Date.Now
Var hour As Integer = d.Hour