Skip to content

parseDayFromZoned

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

Return the day (1-31) from a zoned datetime string.

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

Day (01-31) or "" on invalid input

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

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