Skip to main content

Function: formatWeekNumber()

formatWeekNumber(value, ctx): string

Defined in: time/format.ts:153

An ISO week label — W followed by the week number. The escape-hatch callback shipped as a named value, because Intl has no week field. '' for a missing value. Exported from api/ — unlike the individual preset constants — because a custom- preset author cannot produce a week number any other way.

Parameters​

value​

unknown

ctx​

FormatContext

Returns​

string