Cron expression for the first day of the month
Runs the job at midnight on the 1st of every month.
0 0 1 * *
At 12:00 AM, on day 1 of the month
Field by field
- Minute · 0–59
0only at minute 0 - Hour · 0–23
0only at 00:00 - Day of month · 1–31
1only on day 1 - Month · 1–12 or JAN–DEC
*every month - Day of week · 0–7 or SUN–SAT
*every day of the week
Next runs in your local time
Where this cron expression shows up
- Monthly invoicing
- Resetting counters that roll over with the calendar
- Storage and cost reports for the month just gone
Common variations
-
The last day of the month
0 0 L * * At 12:00 AM, on the last day of the month
-
On the 1st and the 15th
0 0 1,15 * * At 12:00 AM, on days 1 and 15 of the month
Ranges, steps, and names are spelled out on the cheat sheet.