Skip to content

parseDayOfWeekFromZoned

  • The core functions, which every industry uses.
parseDayOfWeekFromZoned(value: string): number | null

Return the day of the week (1-7, Monday-Sunday) from a zoned datetime string.

  • Returns number 1-7 for valid input.
  • Monday=1 through Sunday=7.
  • Returns null for invalid input.
ParameterTypeDescription
valuestringISO zoned datetime string (e.g., “2024-03-15T14:30:45.123+00:00[UTC]”)

Day of week (1-7) or null on invalid input

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

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