Skip to main content

Function: weekdayShort()

weekdayShort(iso): string

Defined in: src/lib/dates/index.ts:238

Short weekday label ('Sun'…'Sat') for an ISO date, derived from the date itself so labels stay correct regardless of which weekday a period is anchored to (a Monday-anchored week renders Mon…Sun, not Sun…Sat). Pure; no timezone dependence beyond dayOfWeekSunday0.

Parameters

iso

string

ISO date string ('YYYY-MM-DD').

Returns

string

The three-letter weekday label for that date.