WeekYear
WeekYear добавляет API .weekYear()
для получения информации о неделе года, исходя из значения локали.
var weekYear = require("dayjs/plugin/weekYear"); // dependent on weekOfYear plugin
// import weekYear from 'dayjs/plugin/weekYear' // ES 2015
var weekOfYear = require("dayjs/plugin/weekOfYear");
// import weekOfYear from 'dayjs/plugin/weekOfYear' // ES 2015
dayjs.extend(weekOfYear);
dayjs.extend(weekYear);
dayjs().weekYear();