Returns the UTC date's day of the week as a number

Description

getUTCDay()
Returns the UTC date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).

Example


var myDate = new Date();
console.log(myDate.getUTCDay());

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window