Quartz.Net CronExpression Builder

ServerMonkey picture ServerMonkey · Apr 4, 2011 · Viewed 19.3k times · Source

I have some GUI controls forming a typical windows scheduler (Date\Time pickers, check boxes, etc) that I would like to build a CronExpression string from.

Does anyone know of a good way to build the expression string, either a pre-existing class or good approaches to tackle this problem?

Answer

LeftyX picture LeftyX · Apr 5, 2011

Cron expressions in Quartz.Net are made up of 7 sub-expressions:

1. Seconds
2. Minutes
3. Hours
4. Day-of-Month
5. Month
6. Day-of-Week
7. Year (optional field)

I usually use CronMaker to create my own cron expressions.

Another option is this other tool which works pretty well.