WeekNumber

Purpose

This function returns the week number of the year for the given date, and assumes the first full week starting on Sunday of the year as Week 1.  For other options on the first week of the year, use WeekNumberEx.

Parameters

Parameter: In Date
Type: date
Description: This is the date for which you wish to know the week number.

Returns

Return value: WeekNumber
Type: short integer
Description: This is the week number of the year for the given date.

See Also

DaysInMonth
DaysLeftInMonth

DaysLeftInYear

WeeksLeftInYear

WeeksLeftInYearEx
WeekNumberEx