Progress
SQL-92
Guide and Reference


DAYOFYEAR Function

Returns the day of the year in the argument as a short integer value in the range of 1-366. The argument date_expression can be the name of a column, the result of another scalar function, or a date or timestamp literal.

SYNTAX

DAYOFYEAR ( date_expression ) 

EXAMPLE

This example illustrates the DAYOFYEAR function:

SELECT *
    FROM orders
    WHERE DAYOFYEAR (order_date) = 300 ; 

NOTES

COMPATIBILITY

ODBC Compatible


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095