Skip to content

parseDayFromDate

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

Return the day of month (1-31) for a given ISO 8601 date string.

  • Returns zero-padded string for day.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO date string

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

import { parseDayFromDate } from "@northguild/gmt/plain/parse";
parseDayFromDate("2024-03-15") // "15"
output 

plain/parse/parseDayFromDate.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.