---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Date.prototype.getDay()

The **`getDay()`** method returns the
day of the week for the specified date according to local time, where 0 represents
Sunday. For the day of the month, see [`Date.prototype.getDate()`](./getDate.mdx).

## Syntax

```js
getDay()
```

### Return value

An integer number, between 0 and 6, corresponding to the day of the week for the given
date, according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
