---
title: "dayname function in Strata | Oplema"
description: "Get the English name of the weekday from a date or timestamp, such as Sunday. For example, dayname(DATE '1992-09-20') returns 'Sunday'."
url: "https://oplema.com/docs/strata/functions/dayname"
updated: "2026-11-04"
---

# dayname

Get the English name of the weekday.

## Try an expression

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

### Expression

```
dayname(DATE '1992-09-20')
```

### Result

```
'Sunday'
```

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 | Sunday |

## Arguments and types

```
dayname(ts)
```

**ts**

Date, Timestamp

Supported signatures (3)

```
dayname(ts: DATE) → VARCHAR
dayname(ts: TIMESTAMP WITH TIME ZONE) → VARCHAR
dayname(ts: TIMESTAMP) → VARCHAR
```

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

[monthname

Get the English name of the month.

](https://oplema.com/docs/strata/functions/monthname)[weekday

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

](https://oplema.com/docs/strata/functions/weekday)[age

Calculate the time between two timestamps as an interval, subtracting the second from the first.

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

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

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

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

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