Skip to content

weeknum

Week of the year.

v = weeknum(serial_number, return_type)

Returns the week-of-year (1–53) for the date. return_type selects the convention for which day starts a week (default 1 = Sunday).

weeknum(date(2026, 4, 28))