Date.prototype.getDay

Returns the day of the week, using local time.

0 represents Sunday, 1 represents Monday, …, 6 represents Saturday.

Syntax

getDay()

Return value

A number representing the day of the week.