DAYOFYEAR(date)
Returns the day of the year for date, in the range 1 to 366.
SELECT DAYOFYEAR('2018-02-16'); +-------------------------+ | DAYOFYEAR('2018-02-16') | +-------------------------+ | 47 | +-------------------------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/dayofyear/