--- title: "weekday()" slug: "date-week-day" updated: 2026-08-13T09:02:25Z published: 2026-08-13T09:02:25Z canonical: "docs.lobstersoftware.com/date-week-day" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # weekday() This function returns the weekday of a D*date* or *Timestamp* in parameter **a** as number. The numbers are representing the following weekdays. | Value | Weekday | | --- | --- | | 0 | Sunday | | 1 | Monday | | 2 | Tuesday | | 3 | Wednesday | | 4 | Thursday | | 5 | Friday | | 6 | Saturday | ## Parameters | Parameter | Description | | --- | --- | | a | Date | ## Examples | Parameter a | Result | | --- | --- | | 2005-02-07 08:20:00 | 1 | | 2005-02-05 | 6 |