WEEKNUM


Returns the ISO week number of a given date.

Syntax:

WEEKNUM(date, mode)
returns the international standard ISO8601 week number, where week 1 is the week that contains January 4th. date is the date as a date-time serial number or as text. mode specifies which day is considered the first day of the week: 1 for Sunday, 2 for Monday.

Example:

WEEKNUM("2010-01-07", 2)
returns 1. 7 Jan 10 is a Thursday, and 4 Jan 10 the Monday of that week.






 
Created with Zapof