Returns the UTC date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).
var myDate = new Date(); console.log(myDate.getUTCDay());
The code above generates the following result.