SQL

MySQL DAYOFYEAR() Function

Return the day of the year for a date: