Cron Expression for Twice Monthly (1st & 15th): 0 0 1,15 * *

Runs at 00:00 on the 1st and 15th of every month. Ideal for: Semi-monthly payroll exports, contractor invoice batches, and bi-monthly certificate/secret audits.

0 0 1,15 * *
Runs at 00:00 on the 1st and 15th of every month

5-Field Cron Breakdown

0
Minute
At minute 00
0
Hour
At hour 00
1,15
Day of Month
Days 1 and 15
*
Month
Every month
*
Day of Week
Any day of week

Live Next-10-Runs Simulator (UTC & Local Time)

Runs at 00:00 on the 1st and 15th of every month

Run #UTC Execution TimeSelected TimezoneRelative
Calculating next 10 runs locally...

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 0 1,15 * * /usr/bin/flock -n /tmp/my-job.lock /usr/local/bin/job.sh >> /var/log/my-job.log 2>&1

GitHub Actions Workflow YAML

on:
  schedule:
    - cron: '0 0 1,15 * *' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

Quartz 6-field: 0 0 0 1,15 * ?
AWS EventBridge: cron(0 0 1,15 * ? *)

Kubernetes CronJob Spec

apiVersion: batch/v1
kind: CronJob
metadata:
  name: scheduled-job
spec:
  schedule: "0 0 1,15 * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid

Production Pitfalls & Best Practices

Key Pitfall: Keep `1,15` free of spaces. In Quartz/AWS, set Day-of-Week to `?` (`0 0 0 1,15 * ?`).
Common Use Cases: Semi-monthly payroll exports, contractor invoice batches, and bi-monthly certificate/secret audits.
JetBrains SQL Explain Lens

Slow Nightly Cron Queries? Inspect SQL Plans Instantly in Your IDE

Optimize heavy nightly ETL, billing, and cleanup cron queries with JetBrains SQL Explain Lens and our production database runbooks available on Gumroad.

Frequently Asked Questions

What does the cron expression `0 0 1,15 * *` mean?

`0 0 1,15 * *` means: Runs at 00:00 on the 1st and 15th of every month. Its 5 fields map to Minute=0, Hour=0, Day-of-Month=1,15, Month=*, and Day-of-Week=*.

How do I run `0 0 1,15 * *` in GitHub Actions?

Add `on: schedule: - cron: '0 0 1,15 * *'` to your workflow YAML. Remember GitHub Actions always interprets cron schedules in UTC and enforces a minimum 5-minute interval.

What is the Quartz / AWS EventBridge equivalent of `0 0 1,15 * *`?

In 6-field Quartz cron use `0 0 0 1,15 * ?` (adding leading seconds `0` and `?` mutual exclusion). In AWS EventBridge use `cron(0 0 1,15 * ? *)`.

Related Cron Recipes