+
K
Supported in: Batch
Returns the first date which is later than the value of the date column based on the day of week argument.
Expression categories: Datetime
Output type: Date
Description: Next Thursday after Wednesday February 28, 2024 in leap year (should be Feb 29)
Argument values:
THURSDAY
Output: 2024-02-29
Description: Next Friday after Thursday February 29, 2024 in leap year (should be Mar 1)
FRIDAY
Output: 2024-03-01
Description: Next Friday after Wednesday January 10, 2024
Output: 2024-01-12
Description: Next Monday after Wednesday January 10, 2024
MONDAY
Output: 2024-01-15
Description: Next Sunday after Saturday January 13, 2024
SUNDAY
Output: 2024-01-14
Description: Next Tuesday after Tuesday January 9, 2024 (skips to following week)
TUESDAY
Output: 2024-01-16
date