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/getUTCDay below:

getUTCDay ยท WebPlatform Docs

getUTCDay Summary

Gets the day of the week using Universal Coordinated Time (UTC).

Syntax
dateObj.getUTCDay()
Return Value

Returns an integer between 0 (Sunday) and 6 (Saturday) that represents the day of the week.

Examples

The following example shows how to use the getUTCDay method.

var date = new Date("2/6/2001");
 var day = date.getUTCDay();
 document.write(day);

 
Remarks

The required dateObj reference is a Date object. To get the day of the week using local time, use the getDate 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