Syntax
DAYOFYEAR(date)
Purpose
You can call this function to return the ordinal number of the day in the year of date.
Examples
obclient> SELECT DAYOFYEAR('2021-07-15');
+-------------------------+
DAYOFYEAR('2021-07-15')
+-------------------------+
196
+-------------------------+
1 row in set (0.00 sec)