When running queries in MySQL, you can use the DAYOFYEAR()
function to return the day of the year from a date.
This function accepts one argument, and it returns a value between 1 and 366, depending on which day of the year the day part of the argument represents.