Page 1 of 1

Last day of month

Posted: Fri May 15, 2020 6:26 am
by marco@panma.es
How can I configure a trigger of the type ttMonthlyDate to run on the last day of the month.
Thanks

Re: Last day of month

Posted: Fri May 15, 2020 1:11 pm
by isiticov
Hello,
We will extend the functionality to support this more convenient in next version. Meantime you can use the following code:

Code: Select all

IMonthlyTrigger(TaskItem.Triggers[0].GetVistaTrigger).RunOnLastDayOfMonth := True;
TaskItem.Save;
This will setup a task to run on the last day of the month.

Re: Last day of month

Posted: Mon May 18, 2020 4:41 pm
by marco@panma.es
Thanks!

Re: Last day of month

Posted: Mon May 25, 2020 5:08 am
by isiticov
Hello,

FYI: Just released version 2.0.21 includes support for this functionality.