# Week of Year (ISO)

URL: https://caijiao.org/dayjs/get-set/iso-week
Source: docs/dayjs/get-set/iso-week.md
Description: 获取或设置年份的 ISO 星期。这依赖 IsoWeek 插件，才能正常运行

获取或设置年份的 [ISO 星期](https://en.wikipedia.org/wiki/ISO_week_date)。


```javascript
dayjs.extend(isoWeek);

dayjs().isoWeek(); // gets the current ISO week of the year
newDate = dayjs().isoWeek(2); // returns new dayjs object
```
