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 = aDateTime.Day

New in 2019r2

Supported for all project types and targets.

The day number of the date.

Sample Code

The following displays the current day:

Var d As DateTime = DateTime.Now
Label1.Text = d.Day.ToString