weekofyear()

Returns the integer number represents the week number.

Aligned with ISO 8601 standards, where first day of the week is Sunday.

weekofyear(datetime("2015-12-14"))

Syntax

weekofyear(a_date)

Arguments

  • a_date: A datetime.

Returns

week number - The week number that contains the given date.