Date.getDate

getDate – Get the day of the month, according to local time (1–31).

Description

Date.getDate()

Return values

Integer

Examples

Example #1 – getDate example
var date = new Date(2015, 9, 21, 16, 29, 00); console.log(date.getDate()); // 21 console.log(new Date().getDate()); // Gets the current date.

External references