Cron monthly on the last day at 06:00: the expression, explained, in Linux crontab
The cron expression for “monthly on the last day at 06:00” is 0 6 28 * *. This page shows what each field does, the next five times it will fire, the mistake most people make with it, and a working Linux crontab example you can paste.
The expression
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | exactly 0 |
| hour | 6 | exactly 6 |
| day of month | 28 | exactly 28 |
| month | * | every month |
| day of week | * | every day of week |
Next five runs (UTC, from now)
- 2026-09-28 06:00 UTC
- 2026-10-28 06:00 UTC
- 2026-11-28 06:00 UTC
- 2026-12-28 06:00 UTC
- 2027-01-28 06:00 UTC
Mistakes people make with this schedule
- Cron has no "last day of the month". Day 28 is the latest date every month has, so it is the portable choice; "L" only works in Quartz-style schedulers, and 31 silently skips short months.
- Assuming the server clock is your clock. Cron runs in the machine’s timezone unless the runtime says otherwise; the examples here are UTC.
- No lock around a job that might overlap itself, and no alert when it silently stops. That second one is what Supercrontab is for.
Run it in your stack
# crontab -e 0 6 28 * * /usr/bin/curl -fsS https://example.com/cron/run > /dev/null
Lines run under the user’s crontab in the system timezone. Redirect output or cron will email it to you.
Questions
Does 0 6 28 * * run in my local time?
Only if the scheduler is configured for it. crontab uses the system timezone; Vercel and GitHub Actions always use UTC; Laravel and node-cron take a timezone option. In Supercrontab the timezone is a field on the job.
What if the previous run is still going?
Classic cron starts the next run anyway. Add a lock (flock on Linux, withoutOverlapping() in Laravel) or let Supercrontab skip the tick while the previous request is open.
Is there a shorter way to write this?
No. The five-field form is the shortest portable version.