day of year

Prev Next

Function Names

day of year

Description

This function returns the day of year. 0 is returned if the input value contains no recognizable date.

Call as: function

Restrictions

Indirect parameter passing is disabled

Parameter count

1

Parameters

No.TypeDescription
1
input
date or string converted to date Date

Value to extract as described above

Return value

TypeDescription
numeral Result

Returned value as described above

Examples

      echo( day of year( 31.12.2019 ), ", ", day of year( 31.12.2020 ), ", ", day of year( "" ) );

Output

365, 366, 0
Try it yourself: Open LIB_Function_day_of_year.b4p in B4P_Examples.zip. Decompress before use.

See also

Date info functions