Search code examples
c#quartz-schedulerquartz.net

quartz.net cron schedule to run job every x days


hi what would be the cron schedule string for running the job every x days.

Currently I am trying but not sure if this is correct. 0 0 0/{x} * * ?

where x is the interval in hours. So if i want to run the job every 10 days the value of x will be 10* 24 = 240. Please suggest if you have better solutions. I prefer the answer be in cron schedule format.


Solution

  • 0 0 0 1/{x} * ? where x is the day in calendar with values 1-31.