getDay

Modified on Tue, 22 Aug 2023

Description

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

Syntax

getDay(date)

Returns

Return ValueDescription
DateReturns the resulting date.

Sample

ExampleResultDescription
getDay(2023-04-08)4Returns the day of the week, which is 4, for the given date.

To view all the Date functions, click here.

See Also