Skip to content

Returns the day of the year from a date.

func.dayofyear(<date>)
func.dayofyear('2024-06-15')
┌─────┐
167
└─────┘
DAYOFYEAR(<date>)
SELECT DAYOFYEAR('2024-06-15');
┌─────┐
167
└─────┘