From Xojo Documentation

Revision as of 16:42, 1 August 2019 by PLefebvre (talk | contribs)

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

Supported for all project types and targets.

The number days into the year that the date falls on.

Sample Code

The following code displays the current day of the year.

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