Cron near the end of every month
Expression: 0 0 28-31 * *
Meaning
Run at midnight on days 28 through 31 each month, then let the job check whether it is the final day.
Example use
Useful for schedulers that do not support L syntax for the last day of the month.
How to modify it
Add an in-job date check that only continues when tomorrow is day 1.
Use it in the cron parser
Open the Cron Parser, paste 0 0 28-31 * *,
and review the next run times in your browser before using the schedule in production.
Related cron schedules
- Cron first day of every month —
0 0 1 * * - Cron on the 15th of every month —
0 0 15 * * - Cron monthly at 9 AM —
0 9 1 * *
FAQ
Does cron use my local time zone?
Cron uses the time zone configured in the scheduler or server. Cloud platforms, CI systems and containers may default to UTC.
Is this a five-field or six-field cron?
This page uses standard five-field crontab syntax: minute, hour, day of month, month and day of week.