Skip to main content

Date.DayOfYear

Returns a number from 1 to 366 representing the day of the year.

Syntax

Date.DayOfYear(
dateTime as any
) as number

Remarks

Returns a number representing the day of the year in the provided date, datetime, or datetimezone value, dateTime.

Examples

Example #1

The day of the year for March 1st, 2011.

Date.DayOfYear(#date(2011, 03, 01))

Result:

60

Category

Date