Skip to main content
Version: 3.28.0

Date.prototype.getDate()

The getDate() method returns the day of the month for the specified date according to local time.

Syntax

getDate()

Return value

An integer number, between 1 and 31, representing the day of the month for the given date according to local time.