DayOfYear

Summary

The DayOfYear function returns the numeric day of the year for the specified date.

Syntax

DayOfYear(<date|date_time|instant|offset_date_time|zoned_date_time>)

Return Type

Integer

Details

Returned values range from 1-366.

Examples

eval DayOfYear(ToDate(‘2042-04-01’));

screen-shot-2016-09-21-at-9-35-03-am

 
 
select date1, DayOfYear(date1), DayOfYear(date_time1), DayOfYear(offset_date_time1), DayOfYear(zoned_date_time1) from AllTypes();
screen-shot-2016-09-21-at-9-34-56-am

Related Functions

DayOfMonth

DayOfWeek

Month

Quarter

Week

Year