Search code examples
springquartz-schedulerschedulercron-taskcronexpression

Spring CRON Expression Help- everyday day starting sunday at 8


I would like to create a cron expression which runs my program starting at 8pm Sunday, and runs every 15 minutes until Friday at 8 pm. Can someone help? I have this so far but I can't seem to get it right

0 0/15 20-20 * * SUN-FRI


Solution

  • Try this: 0 0/15 20-8,8-20 ? * SUN,MON,TUE,WED,THU,FRI *

    This site looks pretty great for that: http://www.cronmaker.com/