Skip to content

endOfQuarterForUtc

  • The core functions, which every industry uses.
endOfQuarterForUtc(value: string): string

Return the end of the quarter for a given UTC Instant string.

  • Calculates quarter end month: Q1=3, Q2=6, Q3=9, Q4=12.
  • Returns last moment of the quarter.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringUTC Instant string

UTC Instant string for the end of the quarter, or "" on invalid input

import { endOfQuarterForUtc } from "@northguild/gmt/utc/calculate";
endOfQuarterForUtc("2024-03-15T12:00:00Z") // "2024-03-31T23:59:59.999999999Z"
output 

utc/calculate/endOfQuarterForUtc.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.