Standard built-ins

Date.prototype.getUTCDate()

Try the free JavaScript compiler

UTC day of month (1–31). Invalid date returns NaN. Local methods use host zone; example constructs local calendar fields.

Formal Syntax & Structure

javascript syntaxjavascript
date.getUTCDate()

Return Value

Number

Calendar field or NaN.

Working Example

Example Snippetjavascript
console.log((new Date("2024-01-02T03:00:00Z")).getUTCDate());
JavaScript Reference