Copy link to clipboard
Copied
(CF2016)
I need to run a task on the schedule on exactly the same day of the each month. I can set the start date this month, and lower down set MONTHLY, but does that mean it will litereally run on the same day of the month each day, it's not clear that will be the case
Thanks.,
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks Charlie, that's a massive help, I did notice it but was not familiar with Quartz so ran in the other direction
Using the Quartz generator I was able to create what I wanted, so if I want to run on the 28th of each month, I just add in
0 0 0 28 * ? *
Just need to give it a month now to see if it works 😉
Copy link to clipboard
Copied
Glad to help, and yep that would be at midnight, if that's what you want (you hadn't said). And the last arg is optional, which is why my example didn't have it. But yep, cool stuff. Thanks for marking it as the answer.
Copy link to clipboard
Copied
Ahhh, glad you pointed the time out, I was not using the tool correctly, I didn;'t realize I could set the seconds, minutes, hours etc on each tab to build the string up, Now it's right, this should be 1 minute passed midnight on the 28th, so basically as soon as the 27th ends, 1 minute later the task runs
0,28 1 0 28 * ? *
Copy link to clipboard
Copied
Well, no. That will run twice that day, at 0 and 28 seconds after the given hour and minute. I don't think that's what you meant. Your first one seemed right, being once a month at the given day of the month (and given hour/minute/second). Why did you change it? I merely commented that the last arg was optional.
Copy link to clipboard
Copied
Oh, I must have messed up on the generator. I was trying to create one that ran on the 28th of each month, at 1 minute past midnight, this must be it 🙂
0 1 0 28 * ? *