DAY_OF_YEAR

Script Function: Returns the current day of a date of the year.

Syntax

DAY_OF_YEAR ([Date Format:]Date)

Syntax

Description/Format

Date

Date in YYMMDD or YYYYMMDD format

Format: script literal or script variable

(Optional) You can specify a different date format: enter the desired date format, a separator (: or ;) and the date.


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.

Example

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:

seealso

Script Date and Time Functions

Date, Time and Period Formats in Scripts