DateTime.getDayOfYear

int getDayOfYear()

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

Returns

the day of the year