weekOfYear
WeekOfYear 增加了 .week()
API 返回一个 number
来表示 Day.js 的日期是年中第几周。
var weekOfYear = require("dayjs/plugin/weekOfYear");
// import weekOfYear from 'dayjs/plugin/weekOfYear' // ES 2015
dayjs.extend(weekOfYear);
dayjs("2018-06-27").week(); // 26
dayjs("2018-06-27").week(5); // set week