Skip to content

getQuarterForZoned

  • The core functions, which every industry uses.
getQuarterForZoned(value: string): number | null

Return the quarter of the year (1-4) for a given zoned ISO datetime.

  • Q1 = months 1-3, Q2 = months 4-6, Q3 = months 7-9, Q4 = months 10-12.
  • Validation is performed on the input.
ParameterTypeDescription
valuestringISO ZonedDateTime string

number (1-4) or null on invalid input

import { getQuarterForZoned } from "@northguild/gmt/zoned/calculate";
getQuarterForZoned("2024-02-15T14:30:00+00:00[UTC]") // 1
output 

zoned/calculate/getQuarterForZoned.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.