# WEEKDAY

#### Syntax <a href="#syntax.15" id="syntax.15"></a>

**WEEKDAY**(*date*)

* *date* - das Datum, von dem der Wochentag zurückgegeben werden soll *- **Wertetyp**: Datum*

#### Bemerkungen <a href="#examples.1" id="examples.1"></a>

* Die Funktion gibt zurück
  * 1 für Sonntag
  * 2 für Montag
  * 3 für Dienstag
  * 4 für Mittwoch
  * 5 für Donnerstag
  * 6 für Freitag
  * 7 für Samstag
* Um die Wochentagsnummern in Wochentagsnamen umzuwandeln, kann die Funktion LOOKUP verwendet werden (siehe Beispiel unten).

#### Beispiel <a href="#examples.1" id="examples.1"></a>

Jeder Wert, der in ein Datum umgewandelt werden kann, kann als Parameter für die Funktion WEEKDAY verwendet werden, z.B. einfache Zahlen.

<figure><img src="/files/y0p1o3u6UGDrxnFp7Co4" alt=""><figcaption></figcaption></figure>

Mit der Funktion LOOKUP können Sie die Namen der Wochentage mit Hilfe einer Umrechnungstabelle (grün eingefärbt) abrufen.

<figure><img src="/files/3udh7PiK61AQhcblpzCl" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/version-1.83-de/nedyx/clearlines-funktionen/datums-funktionen/weekday.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
