CronExpressions - any librarys out there to generate them/convert them into human readable form?

I wrote a C# library that does just this. It's called cron-expression-descriptor. https://github.com/bradymholt/cron-expression-descriptor.


Using the latest Quartz.NET (2.1 as of this writing) you can get the Cron expression by using the CronScheduleBuilder.

Getting the expression for daily jobs:

var t = CronScheduleBuilder.DailyAtHourAndMinute(10, 0).Build() as CronTriggerImpl;
Console.WriteLine(t.CronExpressionString);// This is the actual Cron
Console.WriteLine(t.GetExpressionSummary()); // This is the description of that Cron

I ended up using this jquery plugin which provides a nice interface and then using a hidden field to save this to a database in .net/c#.

http://shawnchin.github.com/jquery-cron/

It works quite well for me. You may need to check that you are setting seconds at the front of the string to "0" though if using quartz.net though like I was as this plugin doesn't support seconds.