Date.getUTCMonth

getUTCMonth – Get the month, according to universal time (0–11).

Description

Date.getUTCMonth()

Get the month, 0 (January) to 11 (December).

Return values

Integer

Examples

Example #1 – getUTCMonth example
console.log(new Date().getUTCMonth()); // Gets the current month, according to UTC.

External references