Configure a CronString for a BiWeekly job in Quartz.Net

cronexpression, quartz.net

Solution

Actually what you might be looking for is CalenderIntervalTrigger, which is capable to do this easily.

var trigger = TriggerBuilder.Create()
    .StartAt(new DateTime(2012, 11, 19, 12, 0, 0).ToUniversalTime())
    .WithCalendarIntervalSchedule(x => x.WithIntervalInWeeks(2))
    .Build();

Problem

How can I configure a CronString for Quartz.Net job scheduler for the following job: Job should run on BiWeekly on Monday at 12:00 AM. i.e. it should run on every Monday but skipping one week in between. Example: ``` 1st Run => 19-Nov-2012 [Monday] 12:00 AM 2nd Run => 03-Dec-2012 [Monday] 12:00 AM 3rd Run => 17-Dec-2012 [Monday] 12:00 AM ```

Original source