Date.Month

From Xojo Documentation

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

Supported for all project types and targets.

The month number of the date.

Sample Code

The following code displays the current month:

Var d As Date = Date.Now
MonthLabel.Value = d.Month.ToString