Last day of month

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
marco@panma.es
Posts: 2
Joined: Thu May 14, 2020 3:09 pm

Last day of month

Post by marco@panma.es »

How can I configure a trigger of the type ttMonthlyDate to run on the last day of the month.
Thanks
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Re: Last day of month

Post 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.
marco@panma.es
Posts: 2
Joined: Thu May 14, 2020 3:09 pm

Re: Last day of month

Post by marco@panma.es »

Thanks!
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Re: Last day of month

Post by isiticov »

Hello,

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