Zum Inhalt

GetDayOfWeek (Opus Funktion)

Beschreibung

Ermittelt den Wochentag eines Datums. Returns the day of the week for the given date as an integer (1 = Monday, 7 = Sunday).

Argumente

Name

Typ

Beschreibung

DateText

Date

string

datetime

Datum im Format „DD.MM.YYYY"

Datum im datetime Format

Rückgabewert integer

Wochentag (1 = Montag,..., 7 = Sonntag)

Beispiel

Result = GetDayOfWeek("15.03.2017");

Resultat: 3

Siehe auch