JavaScript Date getDate() Method

Get the day of the month

Definition and Usage

The getDate() method returns the day of the month (1 to 31) of a date.

Syntax

Date.getDate()

Parameters

NONE

Return Value

Type Description
A numberThe day of the month (1 to 31).

Browser Support

getDate() is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome IE Edge Firefox Safari Opera
Yes Yes Yes Yes Yes Yes