All recipes

Cron recipe

Cron job the last day of every month: the exact expression

The expression

six-field (Quartz-style)
0 0 L * *

Paste it into crontab -e, your platform cron config, or tool.crontap.com/cronjob-debugger to preview the next runs.

What it does

Quartz-style: midnight on the last calendar day of the month. Portable Linux cron does not support `L`; see the note above.

When to use it

  • Month-end close jobs

    Accounting systems that must run after the final day is known.

  • Metered billing finalization

    Capture usage through the last second of the month.

Common variations

  • 0 0 28-31 * *

    Imperfect Linux workaround: run on 28–31 and exit unless tomorrow is the 1st.

Run this with Crontap

External HTTP cron hits your URL on this schedule, stores every response, and emails you when a run fails. No daemon on the box, no drift when the server reboots. Pro schedules down to a 1-minute cadence; $3.25/mo annual flat for unlimited jobs.

Related recipes

More patterns in the cron syntax cheat sheet and what is a cron job in Linux.

FAQ

What is the cron expression for the last day of every month?
Use 0 0 L * * (six fields with seconds first). Verify the next run times in the free cron debugger before you deploy.
Can Crontap run this schedule?
`L` means last day of month in Quartz and AWS EventBridge, not in standard Linux crontab. On Linux, use a script that computes the last day, or run daily and gate inside the job.