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

# 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).

Get year of given date.

- date required `date` The date from which to extract the year.

- Y `number` The year (numeric representation) extracted from the input date.

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

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

### Version history

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