JavaScript · More dates

date.getDate()

The day of the month from 1 to 31.

Syntax
date.getDate()

Example

Try it

More in this group

date.getDay() date.getHours() date.getMinutes() date.getMonth() date.getTime() Date.parse() date.setDate() date.setFullYear()

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course