NEXT_DAY
Returns the date of the upcoming specified day of the week after the given date or timestamp.
Syntax
NEXT_DAY(<date_expression>, <target_day>)
Return Type
Date.
Examples
To find the next Monday after a specific date, such as 2024-11-13:
SELECT NEXT_DAY(to_date('2024-11-13'), monday) AS next_monday;
┌─────────────┐
│ next_monday │
├─────────────┤
│ 2024-11-18 │
└─────────────┘