isoWeekNumber

Calendar
stable

Returns the ISO 8601 week number for a given Date. Week 1 is the week containing the year's first Thursday (Thursday-of-week / first-Thursday-of-year algorithm).

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

date
requis
Date
The date whose ISO week number is computed.

API

Valeur de retour

La valeur retournée par cet util.

Integer week number in the range [1, 53] per ISO 8601.

Usage

Exemples

Extraits de code prêts à coller.

ISO week number for specific dates

typescript