weeknum() Function

Returns the week number within the year for the given date using a given methodology.

Syntax

weeknum( date, [methodology] )

date: (Date) The date for which the week number will be determined.

methodology: (Integer) Controls what day is the first of the week with 1 correlating with the week beginning on Sunday and 2 correlating with the week beginning on Monday, enter 2.

Returns

Integer

Notes

The default value of methodology is 1.

Examples

You can experiment with this function in the test box below.

Test Input

weeknum(date(2011,12,13)) returns 51

FEEDBACK