This is similar to the work-day addition problem we have seen in so many forums.
Write a function/procudure/whatever that:
Given two integer arguments:
weekday: 0-6 (sun-sat)
day of month: 1-31
return the first future date that is the given day of week and given day of the month.
Target is to do it in the fewest lines possible (with no silly line continuations or anything like that).
Write a function/procudure/whatever that:
Given two integer arguments:
weekday: 0-6 (sun-sat)
day of month: 1-31
return the first future date that is the given day of week and given day of the month.
Target is to do it in the fewest lines possible (with no silly line continuations or anything like that).