Skip to content

endOfQuarterForDate

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

Return the last day of the quarter for a given ISO date.

  • Returns the last day of the quarter containing the input date.
  • Q1 ends on “03-31”, Q2 ends on “06-30”, Q3 ends on “09-30”, Q4 ends on “12-31”.
  • Validates input using isValidDate.
ParameterTypeDescription
valuestringISO PlainDate string

ISO PlainDate string for the last day of the quarter, or "" on invalid input

import { endOfQuarterForDate } from "@northguild/gmt/plain/calculate";
endOfQuarterForDate("2024-03-15") // "2024-03-31"
output 

plain/calculate/endOfQuarterForDate.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.