Cron Expression for Monthly on the 1st at Midnight: 0 0 1 * *

Runs at 00:00 on day 1 of every month (same as @monthly). Ideal for: Monthly SaaS invoice generation, usage quota resets, archive log rotation, and compliance exports.

0 0 1 * *
Runs at 00:00 on day 1 of every month (same as @monthly)

5-Field Cron Breakdown

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

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

Runs at 00:00 on day 1 of every month (same as @monthly)

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

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 0 1 * * /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 * *' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

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

Kubernetes CronJob Spec

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

Production Pitfalls & Best Practices

Key Pitfall: Do not combine day-of-month `1` with a day-of-week (e.g. `0 0 1 * 1`) unless you intend Vixie OR semantics (1st OR every Monday).
Common Use Cases: Monthly SaaS invoice generation, usage quota resets, archive log rotation, and compliance exports.
JetBrains Plugin + Gumroad Kit

Running Scheduled Jobs in Production? Protect Secrets with JetBrains EnvGuard

Catch leaked API keys, database URLs, and broken .env configs inside IntelliJ IDEA / PyCharm before your cron jobs hit production, plus grab our DevOps Automation Kits on Gumroad.

Frequently Asked Questions

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

`0 0 1 * *` means: Runs at 00:00 on day 1 of every month (same as @monthly). Its 5 fields map to Minute=0, Hour=0, Day-of-Month=1, Month=*, and Day-of-Week=*.

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

Add `on: schedule: - cron: '0 0 1 * *'` 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 * *`?

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

Related Cron Recipes