Syntax:
DAYOFYEAR(date)

Returns the day of the year for date, in the range 1 to 366. Returns
NULL if date is NULL.

URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

