WeeksLeftInYearEx

Purpose

This function returns the number of weeks left in the current year, based upon the starting week mode provided as a parameter.

Parameters

Parameter: Week Mode
Type: integer (Optional)
Description: This specifies how the first week of the year is determined, according to the following table:

Week Mode Value

Result

1

The first week of the year starts with the first calendar day of the year, regardless of the day of the week it falls upon.

4

The first week of the year is determined by the first week with at least four days in the new year.

(Use WeeksLeftInYear)

The first week of the year is determined by the first full week starting on Sunday in the new year.

If this parameter is omitted, the value 1 is assumed (first calendar day of the year).

Returns

Return value: Weeks Left
Type: short
Description: This number represents the number of weeks remaining in the current year as determined by the week mode parameter.

See Also

DaysInMonth
DaysLeftInMonth

DaysLeftInYear

WeekNumber

WeekNumberEx
WeeksLeftInYear