Script Function: Returns the current day of a date of the year.
DAY_OF_YEAR(Date)
| 
                     Syntax  | 
                
                     Description/Format  | 
            
|---|---|
| 
                     Date  | 
                
                     Indication of a date in the format "YYMMDD" or "YYYYMMDD". Format: script literal or script variable It is also possible to specify a different date format. Do so by entering the required date format, then enter a separator (: or ;) and afterwards the date. Indicating a date format is optional.  | 
            
| 
                     Return code  | 
            
|---|
| 
                     Current day of a Date of the year  | 
            
Optionally, you may specify a particular Date Format. The default Date Formats to be used are "YYMMDD" or "YYYYMMDD". A colon or semicolon may be used as a separator between Date Format and Date.
The example returns the value "366" as the day of the year.
:SET &CURDAY# = DAY_OF_YEAR("DD.MM.YY:31.12.00")
See also:
| Script element | Description | 
|---|---|
| Determines the current time of day. | |
| SYS_DATE_PHYSICAL | Returns the current date. | 
| Provides current date and time. | 
Script Elements - Date and Time
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function