date_get_day_of_year

This function returns the day (from 1 to 366) within the year of the given datetime.

 

Syntax:

date_get_day_of_year( date );

Argument Description
date The date to check.

 

Returns:

Real

 

Example:

mydayyear = date_get_day_of_year(date_current_datetime());

This would set mydayyear to the current day of the year.