Date.getUTCDay

getUTCDay – Get the day of the week, according to universal time (0–6).

Description

Date.getUTCDay()

Get the day of week, 0 (Sunday) to 6 (Saturday).

Return values

Integer

Examples

Example #1 – getUTCDay example
console.log(new Date().getUTCDate()); // Gets the current day of the week, according to UTC.

External references