I'm trying to write a cron expression for quartz scheduler.
The requirement is that in case the day of month does not exists (like 30)- the job will run at the closest day instead.
For example: on February it will run on 28 but on November- on 30.
I saw the answer here: quartz-cron-what-if-the-day-of-month-does-not-exist but is there any better way to perform it?