Function returns day number of the year from 1-366

Example

SELECT DAYOFYEAR( '1999-02-03' )

Returns

34