Skip to content

maxZoned

  • The core functions, which every industry uses.
maxZoned(zonedDateTimes: string[]): string | null

Return the latest (maximum) of the given ZonedDateTime values.

  • Returns null if the array is empty or contains no valid dates.
  • Validation is performed on each item in the array.
ParameterTypeDescription
zonedDateTimesstring[]Array of ISO ZonedDateTime strings

The latest zoned datetime string, or null on invalid input

import { maxZoned } from "@northguild/gmt/zoned/calculate";
maxZoned(["2024-03-10T12:00:00[Asia/Kolkata]", "2024-03-15T12:00:00[Asia/Kolkata]"]) // "2024-03-15T12:00:00+05:30[Asia/Kolkata]"
zonedDateTimes
output 

zoned/calculate/maxZoned.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.