> For the complete documentation index, see [llms.txt](https://2ood.gitbook.io/2ood-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://2ood.gitbook.io/2ood-knowledge-base/programming/javascript/class-date.md).

# class Date

[source](https://ko.javascript.info/date#ref-152)

## `getDay()`

returns integer from `0`(sunday) to `6`(saturday).

```js
const d = new Date(2011, 0, 1, 0, 0, 0, 0);
console.log(d.getDay());
```
