Cron expression for the 1st and 15th of the month
Runs the job on the first and the fifteenth of every month.
0 0 1,15 * *
At 12:00 AM, on days 1 and 15 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
1,15only on days 1 and 15 - 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
- Semi-monthly payroll and invoicing runs
- Statements and reminders that go out twice a month
- A mid-month progress report next to the month-end one
Common variations
-
The same days at 09:00 instead of midnight
0 9 1,15 * * At 09:00 AM, on days 1 and 15 of the month
-
The first day of the month only
0 0 1 * * At 12:00 AM, on day 1 of the month
-
The last day of the month instead
0 0 L * * At 12:00 AM, on the last day of the month
It is not every two weeks. 0 0 */14 * * is the expression people reach for when they want that, and it fires on the 1st, the 15th and the 29th of a long month, which is the run that shows up in the audit.
Ranges, steps, and names are spelled out on the cheat sheet.