Woy

Purpose:

Returns the week number of a given date.

Parameter:

Date            Date to use (must match the date format of the Date() function)

Number       (optional) Determines how the first week of the year is defined. The system's regional settings (locale or LCID) are taken into account here, meaning that the week may be calculated differently depending on the regional settings (the exception is the value 5, for which Monday is fixed).

0

Week with the first working day (default)

1

Week of January, 1

2

First week with at least 4 days

3

First week with 7 days

4

Week with the first Monday

5

ISO 8601

 

 

 

 

 

 

 

 

 

 

Return value:

Number

Example:

Woy(Date("04.07.1776"),0)            Result: 27