---
title: "make_date function in Strata | Oplema"
description: "Build a date from separate year, month and day values, such as three columns. For example, make_date(1992, 9, 20) returns 1992-09-20."
url: "https://oplema.com/docs/strata/functions/make-date"
updated: "2026-11-04"
---

# make\_date

Build a date from a year, month and day. It also accepts a struct with those fields or a day count since 1970-01-01.

## Try an expression

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

### Expression

```
make_date(1992, 9, 20)
```

### Result

```
1992-09-20
```

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 | 1992-09-20 |

## Arguments and types

```
make_date(year, month, day)
```

**year**

Number

**month**

Number

**day**

Number

**date\_struct**

Struct

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

[make\_time

Build a time from an hour, minute and seconds.

](https://oplema.com/docs/strata/functions/make-time)[make\_timestamp

Build a timestamp from a year, month, day, hour, minute and seconds.

](https://oplema.com/docs/strata/functions/make-timestamp)[century

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

](https://oplema.com/docs/strata/functions/century)[date\_add

Move a date or timestamp forward or backward by an interval.

](https://oplema.com/docs/strata/functions/date-add)

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

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