Получает или устанавливает год. dayjs().year() // gets current year dayjs().year(2000) // returns new dayjs object