WeekNumber

Returns the week number for the date entered as a parameter (ISO 8601).

Syntax

WeekNumber(date)
date = date for which you want to retrieve the week number

Remarks

The returned value is ISO 8601-compliant.

To retrieve the day of the current week, you can use DayOfWeek.
For the day of the year, use DayOfYear.

Example

WeekNumber(Now()) = current week, so on Tuesday, May 18, 2010, this will return 20

Classification

DateTime