setDayOfYear

Modified on Tue, 22 Aug 2023

Description

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

Syntax

setDayOfYear(date, dayOfYear)

Returns

Return ValueDescription
DateReturn the resulting date.

Sample

ExampleResultDescription
setDayOfYear(2023-1-1, 100)Apr 10 2023Returns the output as Apr 10 2023.

To view all the Date functions, click here.

See Also