Date.Hour

From Xojo Documentation

Revision as of 21:19, 12 August 2019 by Gperlman (talk | contribs)

Read-Only Property (As Integer )
IntegerValue = aDate.Hour

Supported for all project types and targets.

The hour number of the time portion of the date, using a 24-hour clock.

Sample Code

The following example displays the current hour.

Var d As Date = Date.Now
Label1.Value = d.Hour.ToString