DayPilot.Date.weekNumber

The weekNumber() method returns the week number using the US week numbering system, where week 1 is the week that contains January 1.

Declaration

DayPilot.Date.weekNumber()

Return Value

Returns the week number as a number.

Example

const week = DayPilot.Date.today().weekNumber();

See Also

DayPilot.Date Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript