Difference between revisions of "Date.DayOfYear"

From Xojo Documentation

m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
Line 1: Line 1:
{{Deprecated|version=2019r2|replacement=[[DateTime.DayOfYear]]}}
+
{{DeprecatedItem|version=2019r2|replacement=[[DateTime.DayOfYear]]}}
 
{{PropertyBox
 
{{PropertyBox
 
| name=DayOfYear
 
| name=DayOfYear

Revision as of 19:05, 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