Difference between revisions of "Date.DayOfYear"

From Xojo Documentation

Line 1: Line 1:
 +
{{Deprecated|version=2019r2|replacement=[[DateTime.DayOfYear]]}}
 
{{PropertyBox
 
{{PropertyBox
 
| name=DayOfYear
 
| name=DayOfYear

Revision as of 20:54, 12 August 2019

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