I have been trying to add the requirement in the quartz cron trigger.Below are the expressions i have come with ,
0 0 8,10,12,14,16,18 ? * *
0 0 8-18/2 ? * *
Are the above ones correct.Also How do I add the 11:59 PM trigger in the above.
Please help
There are two things you can do.
First, you could run all of them on the hour and the 11:59 PM becomes 0:00:
Perhaps running all the other ones minute earlier would be better:
You could even add code in the job that delays a minute if its not almost midnight.
Other than that you can have two Quartz timers running the same job:
and