DayOfYear

STD.Date.DayOfYear( date)

dateA date value in the Date_t format.
Return:DayofYear returns an INTEGER value in the range of 1 through 366.

The DayOfYear function returns a number representing the day of the year for the given date. The date must be in the Gregorian calendar after the year 1600.

Example:

IMPORT STD;
D1 := STD.Date.DayOfYear(STD.Date.Today());
      // D1 contains the day of the year for today's date