Difference between revisions of "Date.DayOfYear"

From Xojo Documentation

m (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
| name=DayOfYear
| name=DayOfYear

Latest revision as of 19:07, 3 September 2020

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