Skip to content

parseDateFromZoned

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

Extract the plain date portion from an ISO 8601 zoned datetime string.

  • Extracts date components from a ZonedDateTime.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringzoned ISO 8601 datetime string

plain ISO date string (YYYY-MM-DD) or "" when invalid

import { parseDateFromZoned } from "@northguild/gmt/zoned/parse";
parseDateFromZoned("2024-02-29T12:34:56.789+00:00[UTC]") // "2024-02-29"
output 

zoned/parse/parseDateFromZoned.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.