Get Week Number
Returns the week of the year a date falls in, using the week rules you choose.
Get Week Number returns the number of the week of the year that a date falls in, for example 46. Use it for weekly reports, weekly folders or to group records by week. You choose which day starts the week and how the first week of the year is counted.
Add the action
In the Process Designer toolbox, open DateTime and pick Get Week Number (or type Get Week Number in the search box).

Inputs and outputs
| Field | Direction | Type | Required | What to put / what you get |
|---|---|---|---|---|
| Date | Input | Date and time | Yes | The date to get the week number for. |
| First Week Rule | Input | Option list | Yes | How week 1 of the year is chosen. See the options below. |
| First Day Of Week | Input | Option list | Yes | Sunday or Monday: the day each week starts on. |
| Week Number | Output | Integer | Yes | The week of the year, from 1 to 53 (54 in rare cases with FirstDay). |
First Week Rule options:
- FirstDay: week 1 is the week that contains 1 January, however few days of it are in the new year.
- FirstFullWeek: week 1 starts on the first First Day Of Week of the year. Days before it belong to the last week of the previous year.
- FirstFourDayWeek: week 1 is the first week that has at least four days in the new year.
Example
| Date | First Week Rule | First Day Of Week | Week Number |
|---|---|---|---|
2026-11-10 | FirstDay | Sunday | 46 |
2026-11-10 | FirstFourDayWeek | Monday | 46 |
2027-01-01 (a Friday) | FirstDay | Monday | 1 |
2027-01-01 | FirstFullWeek | Monday | 52 |
2027-01-01 | FirstFourDayWeek | Monday | 53 |
2024-12-30 (a Monday) | FirstFourDayWeek | Monday | 53 |
Good to know
- The result is always counted inside the calendar year of the date. Early-January and late-December dates can get
52or53. - FirstFourDayWeek with Monday is close to the ISO 8601 week, but not the same at the end of the year: ISO puts
2024-12-30in week 1 of 2025, this action returns53. Check the last days of December if you need strict ISO weeks. - A date with a UTC offset is first converted to UTC. An empty Date stops the step with an error.

