Open topic with navigation
Return the day of the year for a date or timestamp:
DAYOFYEAR(date)
SELECT DAYOFYEAR('2020-06-20');
The above query returns:
172
Copyright © 2002-2025. Cloud Software Group, Inc. All Rights Reserved.