RAD function: dayofyear

A RAD function that returns the day of year for a date, regardless of the date format.

Function

dayofyear

Format

$yday=dayofyear($date)

The $date variable is a date and time value.

Example

$yday=dayofyear('2/15/08')

After execution, the value of $yday is 46.