Run a Cron Job on the 15th of Every Month
To run a job on the 15th of every month, set the day-of-month field to 15: 0 0 15 * * runs at midnight on the 15th.
The expression
0 0 15 * * runs at 00:00 on the 15th of every month. Fields: minute (0), hour (0), day-of-month (15), month (*), day-of-week (*).
Pick a time
Change the first two fields for the hour. 0 9 15 * * runs at 09:00 on the 15th.
Both the 1st and 15th
List both days with a comma: 0 0 1,15 * * runs at midnight on the 1st and the 15th — a common semi-monthly / payroll cadence.
FAQ
What is the cron expression for the 15th of the month?
0 0 15 * * runs at midnight on the 15th of every month. The 15 is the day-of-month field.
How do I set the time on the 15th?
Change the minute and hour fields, e.g. 0 9 15 * * runs at 09:00 on the 15th.
How do I run on both the 1st and the 15th?
Use a comma list in the day-of-month field: 0 0 1,15 * * runs on the 1st and 15th at midnight.