--- title: "next weekday()" slug: "date-next-week-day-date" updated: 2026-08-13T08:45:58Z published: 2026-08-13T08:45:58Z canonical: "docs.lobstersoftware.com/date-next-week-day-date" --- > ## 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. # next weekday() This function returns the date of next weekday **b**, depending on date **a**. The numbers for **b** are representing the following weekdays: | Value | Weekday | | --- | --- | | 1 | Sunday | | 2 | Monday | | 3 | Tuesday | | 4 | Wednesday | | 5 | Thursday | | 6 | Friday | | 7 | Saturday | ## Parameters | Parameter | Description | | --- | --- | | a | Date/Timestamp | | b | Weekday | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | 2015-03-06 08:20:00 (Friday) | 4 (Wednesday) | 2015-03-11 08:20:00 | | 2015-03-06 (Friday) | 6 (Friday) | 2015-03-13 |