HangfireIO / Cronos

A fully-featured .NET library for working with Cron expressions. Built with time zones in mind and intuitively handles daylight saving time transitions
MIT License
1.01k stars 118 forks source link

Second weekday of the month #60

Open jonicorn8 opened 11 months ago

jonicorn8 commented 11 months ago

Hello everyone,

I am trying to run a script on both the first and second weekday of the month. While the first weekday is fine ( [0 0 1W ] as in nearest weekday to 1st of month), I can't find a solution for the second weekday. 2W only works if the 1st falls within the Mon-Thu range. Otherwise 1W and 2W will be mapped to the same day. Does somebody have a solution for that? This would be an awesome feature to have.

Thanks and best regards