wkOfYr Function

Calculates the week of the year in which a date is located according to the ISO 8601 specification.


int wkOfYr(date _date)

Parameter

Description

_date

The date for which to calculate the week of the year.

The sequence number of the week in which the specified date occurs.

A month and day, such as January 6, can be in a different week number in different years.

Different week-of-year methods are designed to return different results for some dates.

// Returns the value 6: the 6th week of 1998.
wkOfYr(02\02\1998);

Community Additions

ADD
Show: