Čtvrtletí
Získá nebo nastaví čtvrtletí roku.
TIP
Tato funkce vyžaduje plugin QuarterOfYear.
js
dayjs.extend(quarterOfYear);
dayjs('2010-04-01').quarter(); // 2
dayjs('2010-04-01').quarter(2); // Vrátí novou instanci Day.js s nastaveným čtvrtletím.