Is it possible to write a single cron expression which runs on the 29th day of every month OR the last day if the month has only 28 days (e.g. February)?
Single cron syntax is not possible. You can do last day of the month
0 0 12 L 1/1 ? *.
It will trigger last day of every month.
0 0 12 29 1/1 ? *.
If you trigger like this you will miss non leap year February.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With