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 |