Name

Date.getDate() — return the day-of-the-month field of a Date

Synopsis

date.getDate()

Returns

The day of the month of the specified Date object date, using local time. Return values are between 1 and 31.

Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.