---
title: "week of year · RUAL Documentation"
description: "Set week of year of given date."
canonical: https://docs.rual.nl/block-types/date/date_set_week_of_year
language: en
---

# week of year

This block is part of the [`date`](https://docs.rual.nl/block-types/date) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Set week of year of given date.

- date required `date` The date for which to set the week of the year.

- week required `number` The numeric representation of the week of the year to set for the date.

- date `date` The date with the week of the year set according to the specified value.

A typical wiring for [week of year](https://docs.rual.nl/block-types/date/date_set_week_of_year): the `date` out pin feeds [cast to value](https://docs.rual.nl/block-types/type%20casting/date_convert_to_value).

![Studio canvas example for the week of year block: typical wiring for week of year.](https://docs.rual.nl/canvas-examples/date_set_week_of_year.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
