Skip to content

chopZonedDateTime

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

Extracts the IANA timeZone identifier from an ISO 8601 zoned datetime string.

  • Extracts timezone id from a ZonedDateTime.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO 8601 zoned datetime string

IANA timeZone id (e.g. Europe/Paris) or "" for invalid

import { chopZonedDateTime } from "@northguild/gmt/zoned/chop";
chopZonedDateTime("2024-02-29T12:30:45+01:00[Europe/Paris]") // "Europe/Paris"
output 

zoned/chop/chopZonedDateTime.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.