A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Date/getDay below:

getDay ยท WebPlatform Docs

getDay Summary

Gets the day of the week, using local time.

Syntax
dateObj.getDay()
Return Value

An integer between 0 and 6 representing the day of the week (Sunday is 0, Saturday is 6).

Examples

The following example shows how to use the getDay method.

var date = new Date("Saturday, February 9, 2008");
 day = date.getDay();
 document.write(day);

 
Remarks

The required dateObj reference is a Date object. To get the day using Universal Coordinated Time (UTC), use the getUTCDay method.

See also Other articles Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4