quarter
Returns the calendar quarter the month falls in, as the string "Q1", "Q2",
"Q3", or "Q4".
API Reference
Signature
Parameters
None.
Returns
Returns the MonthQuarter string for the month: 01–03 → "Q1", 04–06 →
"Q2", 07–09 → "Q3", 10–12 → "Q4".
Agent Contract
Agent Notes
quarter()is a pure function of the year-month; it is independent of any day anchor.- Use the returned string directly as a display label or grouping key — do not
prepend
"Q"yourself.