# IsoWeek

URL: https://caijiao.org/dayjs/plugin/iso-week
Source: docs/dayjs/plugin/iso-week.md
Description: IsoWeek 插件添加了 '.isoWeek()' API 用于获取或设置年度的 ISO 周数，并且扩展了 '.startOf()' 和 '.endOf()' API 来支持单位 isoWeek。

IsoWeek 添加 `.isoWeek()` API 以获取或设置年度的 ISO 周数。 并添加 `.isoWeekday()` 获取或设置一周的 ISO 日和 `isoWeekYear()` 获取 ISO 周年，并扩展 `.startOf` `.endOf` APIs 支持单位 `isoWeek`

```javascript
var isoWeek = require("dayjs/plugin/isoWeek");

dayjs.extend(isoWeek);

dayjs().isoWeek();
dayjs().isoWeekday();
dayjs().isoWeekYear();
```
