cron job timing with last day of every month

Timings string 0 2 17 24,23,25,28,29,L Dec,Nov,Jan ? invalid: Support for specifying ‘L’ and ‘LW’ with other days of the month is not implemented

please suggest me how can specify if i select any other date month then the last option will become non editible and if i select last date of month other dates will become non editable

please help me

Hi,

First of all welcome to the forum. I see this is your first post.

If you want to run a job at the last day of each month you can use the following cron timing:

0 2 17 L * ?

About the possibility to add other dates to this ‘L’ option, the manual states the following:

L (“last”) - has different meaning in each of the two fields in which it is allowed. For example, the value “L” in the day-of-month field means “the last day of the month” - day 31 for January, day 28 for February on non-leap years. If used in the day-of-week field by itself, it simply means “7” or “SAT”. But if used in the day-of-week field after another value, it means “the last xxx day of the month” - for example “6L” means “the last friday of the month”. When using the ‘L’ option, it is important not to specify lists, or ranges of values, as you’ll get confusing results.

So it seems it’s not recommended to add other values when using the ‘L’ option. I suggest you setup another cronjob for the other timings. Just make sure you use a different job name.

For further reading on the quartz-scheduler:
http://www.quartz-scheduler.org/documen … rontrigger

Hope this helps.