---
title: "DAYWEEK"
url: "https://help.formsfly.com/en/article/dayweek"
language: "en"
last_updated: "2024-11-01T15:42:55.981Z"
---

# DAYWEEK

Returns the numbered weekday for the specified date value.

* * *

### Syntax

`DAYWEEK(dateval)`

### Example

If mydatefield has value '2024-10-30 09:55:00' (Wednesday), then:

```plaintext
DAYWEEK({{mydatefield}})
```

returns: `3`

### Notes

Values are 0 through 6 for Sunday through Saturday

### Related

[DAYYEAR](https://help.formsfly.com/en/article/dayyear)  
[WEEKYEAR](https://help.formsfly.com/en/article/weekyear)
