[Remind-Fans] Countdown message that only includes weekdays

Dianne Skoll dfs at roaringpenguin.com
Wed Jan 4 11:24:11 EST 2017


On Wed, 4 Jan 2017 12:10:04 -0400
Scott Hatcher <scott.v.hatcher at gmail.com> wrote:

> So, for instance, if we have a deadline of 2017-01-01, and we call
> the new substitution "%B", the reminder would look like:

> REM 2017-01-01 +45 MSG Deadline: ABC report due in %B working days

Oh, that's a piece of cake.

REM 2017-01-01 +45 MSG Deadline in [nonomitted(today(), $T, "Sat", "Sun")] workdays



You can tidy it up a little with:

FSET workdays(x) nonomitted(x, $T, "Sat", "Sun")

...

REM 2017-01-01 +45 MSG Deadline in [workdays(today())] [plural(workdays(today()), "workday")]

Regards,

Dianne.


More information about the Remind-fans mailing list