parseMonthDayFromDate
Signature
Section titled “Signature”parseMonthDayFromDate(value: string): stringReturn the month-day (--MM-DD) of an ISO 8601 date string.
- The year is dropped, so
2023-02-28and2024-02-28give the same month-day. - Only the ISO calendar is read; a Hebrew or Islamic date gives
"". - Returns "" for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO date string |
Returns
Section titled “Returns”The canonical --MM-DD string, or "" on invalid input
Examples
Section titled “Examples”import { parseMonthDayFromDate } from "@northguild/gmt/plain/parse";
parseMonthDayFromDate("2024-12-25") // "--12-25"Source
Section titled “Source”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.