DAYOFYEAR
Return the day of the year. This function returns a number from 1 to 366 indicating the day's position within the year.
Syntax
DAYOFYEAR(date)Description
Examples
SELECT DAYOFYEAR('2018-02-16');
+-------------------------+
| DAYOFYEAR('2018-02-16') |
+-------------------------+
| 47 |
+-------------------------+Last updated
Was this helpful?

