yearweek
Yearweek is a combined representation of a calendar year and a week number used to label weekly intervals in time-series data, reporting, and scheduling. It allows analysts to group or compare data on a weekly basis without relying on specific calendar dates.
The most widely used convention is the ISO-8601 week date system. In ISO weeks, weeks start on
In practice, yearweek values can be derived from dates using various functions. For example, many SQL dialects
Yearweek systems must address cross-year boundaries. Some years have 53 ISO weeks, causing the final weeks of
Uses for yearweek include weekly sales analysis, weather patterns, project timelines, and any scenario needing stable