JavaScript Date getDay()
JavaScript Date getDay()
The getDay() method is used to return the day of the week i.e, from 0 to 6 of the date. Here, 0 is Sunday and 6 is Saturday.
Syntax:-
Its syntax is:- Date.getDay()
Return:-
Its return is:- day of week from 0 to 6