简体   繁体   中英

Java Quartz cron expression

Can someone help me to figure out java quartz cron expression to set a job for every weekday from 1st of the month to 11th of the month at 2.30 pm.

I could achieve from 1st to 11th or week days separately but not together.

For all days from 1st to 11th 0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? * 0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? *

For all Week days 0 30 14 ? * MON,TUE,WED,THU,FRI * 0 30 14 ? * MON,TUE,WED,THU,FRI *

Appreciate your help

Try this:

30 14 1-11 * 1-5

See https://crontab.guru/#30_14_1-11_ *_1-5

It says future executions will be like this:

next at 2018-02-13 14:30:00
then at 2018-02-14 14:30:00
then at 2018-02-15 14:30:00
then at 2018-02-16 14:30:00
then at 2018-02-19 14:30:00

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM