Cron expression for the 1st and 15th of the month

0 0 1,15 * *

At 00:00, on the 1st and 15th of the month.

A list in the day-of-month field runs on both days. Typical for semi-monthly payroll or billing jobs.

Try it and tweak it

Change any field below and the preview updates. Set the time zone to match your server.

✓ Valid cron

At 00:00, on the 1st and 15th of the month.

Next 10 runs

Calculating in your browser…

Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.

Same schedule in other dialects

Unix crontab0 0 1,15 * *
Quartz0 0 0 1,15 * ?
Spring @Scheduled0 0 0 1,15 * ?
AWS EventBridgecron(0 0 1,15 * ? *)

Add it to your crontab

  1. Open your crontab with crontab -e.
  2. Add one line: 0 0 1,15 * * /full/path/to/command >> /var/log/job.log 2>&1
  3. Save and exit. Cron reloads automatically; confirm with crontab -l.

Need the output silenced, a lock against overlapping runs or a system crontab user column? The generator’s full crontab line builder writes it for you. Already have a crontab? Paste it into the crontab parser to check every job.

Variations

0 9 1,15 * *At 09:00 on the 1st and 15th

In other schedulers

crontab line0 0 1,15 * * /path/to/command
Quartz0 0 0 1,15 * ?
Spring@Scheduled(cron = "0 0 0 1,15 * ?")
AWS EventBridgecron(0 0 1,15 * ? *)
GitHub Actions- cron: '0 0 1,15 * *' (UTC)
Kubernetesschedule: "0 0 1,15 * *"

Questions

What is the cron expression for on the 1st and 15th?
0 0 1,15 * *. At 00:00, on the 1st and 15th of the month.
How do I write it in Quartz or Spring?
Add a seconds field and use "?" for the unused day field: 0 0 0 1,15 * ?. In Spring: @Scheduled(cron = "0 0 0 1,15 * ?").
What is the AWS EventBridge version?
cron(0 0 1,15 * ? *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
How do I set up a cron job to run on the 1st and 15th?
Run crontab -e, add the line "0 0 1,15 * * /full/path/to/command >> /var/log/job.log 2>&1" and save. Use absolute paths, because cron runs with a minimal PATH. Check it with crontab -l.
Which time zone will it use?
The time zone of the machine or service running cron. GitHub Actions and Vercel use UTC; Kubernetes uses spec.timeZone if set. The preview above lets you pick a zone.