DateTime.getDayOfYear

Retrieves the day of the year represented by @datetime in the Gregorian calendar.

class DateTime
int
getDayOfYear
()

Return Value

Type: int

the day of the year

Meta

Since

2.26