Date.Day

From Xojo Documentation

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

Supported for all project types and targets.

The day number of the date.

Sample Code

The following displays the current day:

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