Skip to content

parseMonthFromZoned

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

Return the month (1-12) from a zoned datetime string.

  • Returns zero-padded string for month.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO zoned datetime string (e.g., “2024-03-15T14:30:45.123+00:00[UTC]”)

Month (01-12) or "" on invalid input

import { parseMonthFromZoned } from "@northguild/gmt/zoned/parse";
parseMonthFromZoned("2024-03-15T14:30:45+00:00[UTC]") // "03"
output 

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