0
votes

I am using quartz cron expressions in C# for scheduling jobs and i am unable to find an expression that would execute the job every thursday and friday of april every year. I used this expression but it executes on thursdays only. I want it on thrusdays and fridays:

0 19 15 ? 4 5#1 *

Please advice.

1

1 Answers

-1
votes

Like this.

0 19 15 ? 4 5,6 *

But the CRON expression that you're using suggests that you only want the job to fire on the first occurrence of Thrusday and Friday for April, and specifying several occurrences for day-of-week is not supported in Quartz 2.x.

Refer http://quartznet.sourceforge.net/apidoc/2.0/html

I would suggest using 2 separate expressions.