From Xojo Documentation

Revision as of 20:32, 8 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

New in 2019r2

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 DateTime = DateTime.Now
Label1.Value = d.DayOfWeek.ToString