---
title: "isoyear function in Strata | Oplema"
description: "Get the ISO year from a date or timestamp, which can differ from the calendar year around New Year. For example, isoyear(DATE '2022-01-01') returns 2021."
url: "https://oplema.com/docs/strata/functions/isoyear"
updated: "2026-11-04"
---

# isoyear

Get the ISO week-numbering year, which can differ from the calendar year around New Year.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **BIGINT**.

### Expression

```
isoyear(DATE '2022-01-01')
```

### Result

```
2021
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 2021 |

## Arguments and types

```
isoyear(ts)
```

**ts**

Date, Interval, Timestamp

Supported signatures (4)

```
isoyear(ts: DATE) → BIGINT
isoyear(ts: INTERVAL) → BIGINT
isoyear(ts: TIMESTAMP WITH TIME ZONE) → BIGINT
isoyear(ts: TIMESTAMP) → BIGINT
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[century

Get the century from a date or timestamp, such as 20 for 1992.

](https://oplema.com/docs/strata/functions/century)[day

Get the day of the month, from 1 to 31, from a date or timestamp.

](https://oplema.com/docs/strata/functions/day)[dayofmonth

Get the day of the month, from 1 to 31, from a date or timestamp.

](https://oplema.com/docs/strata/functions/dayofmonth)[dayofweek

Get the day of the week as a number, where Sunday is 0 and Saturday is 6.

](https://oplema.com/docs/strata/functions/dayofweek)

[Browse dates & times](https://oplema.com/docs/strata/functions#dates-&-times) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/datepart.html#isoyeardate)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
