Date.DayOfWeek

From Xojo Documentation

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

Supported for all project types and targets.

The day of the week as an integer: 1=Sunday, 7=Saturday.

Sample Code

The following displays the current day of the week.

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