---
title: Date.prototype.getDate
---

## Date.prototype.getDate

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

### Syntax

```js
dateObject.getDate()
```

### Example

```js
var Xmas95 = new Date('December 25, 1995 23:15:30');
var day = Xmas95.getDate();

console.log(day); // 25
```

#### More Information:

[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate)
