I am using Quartz Scheduling and Spring Batch and I need to run a particular job on the last Thursday of every month.
Is it possible to create such a Quartz cron expression?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, Quartz has a special character —
L ("last")–, which allows you to define expressions such as the last friday of the month.To fire a job at, say, 10am, on the last Thursday (
5L) of every month, you can use the following cron expression: