getDayOfYear

Modified on Tue, 22 Aug 2023

Description

Use this function to get the day of the year of the given date.

Syntax

getDayOfYear(date)

Returns

Return ValueDescription
NumberReturns the day of the year of the given date.

Sample

ExampleResultDescription
getDayOfYear(2023-04-08)98Returns the day of the year, which is 98, for the given date.

To view all the Date functions, click here.

See Also