Cron · Months and years

Cron Expression for Every Month

0 0 1 * * Runs at midnight on the first day of every month — the same as @monthly. Ideal for invoices, monthly reports and clean-up.

Unix cron · UTC
“At 00:00, on day 1 of the month”
Presets
Direction
Clock

Every Month: Unix / Linux cron expression

0 0 1 * *

“At 00:00, on day 1 of the month.”

What each field means
FieldValueMeaning
Minute0:00
Hour012 AM
Day of month11st
Month*every month
Day of week*every day

Every Month in every cron format

SchedulerExpression
Unix / Linux cron
crontab, cronie, Vixie cron, Kubernetes CronJob, GitHub Actions
0 0 1 * *
Quartz
Quartz Scheduler (Java)
0 0 0 1 * ?
Spring @Scheduled
Spring Framework CronExpression and @Scheduled
0 0 0 1 * *
AWS EventBridge
EventBridge rules and Scheduler cron()
cron(0 0 1 * ? *)

Next run times (UTC)

  1. Fri, Jan 1, 2027 00:00
  2. Mon, Feb 1, 2027 00:00
  3. Mon, Mar 1, 2027 00:00
  4. Thu, Apr 1, 2027 00:00
  5. Sat, May 1, 2027 00:00

Calculated when this page was generated. Use the tester above for live times in your own time zone.

Tip

Days 29, 30 and 31 do not exist in every month, so a job on 0 0 31 * * runs only seven times a year. Use L (last day) in Quartz, Spring or AWS instead.

Copy-ready examples

# At 00:00, on day 1 of the month
0 0 1 * *  /path/to/command >> /var/log/my-job.log 2>&1
crontab (Linux)
apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  # At 00:00, on day 1 of the month
  schedule: "0 0 1 * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: my-job
              image: busybox:1.36
              command: ["sh", "-c", "date; echo Hello"]
Kubernetes CronJob
# At 00:00, on day 1 of the month (UTC)
# GitHub Actions schedules always run in UTC and may start a few minutes late.
on:
  schedule:
    - cron: "0 0 1 * *"
GitHub Actions (UTC)
// At 00:00, on day 1 of the month
@Scheduled(cron = "0 0 0 1 * *", zone = "UTC")
public void runJob() {
    // ...
}

// Or externalise it in application.yml:
// app.jobs.my-job.cron: "0 0 0 1 * *"
// @Scheduled(cron = "${app.jobs.my-job.cron}", zone = "UTC")
Spring Boot

Common questions

What is the cron expression for every month?

In standard Unix cron (crontab, Kubernetes, GitHub Actions) use 0 0 1 * *. It means: At 00:00, on day 1 of the month.

How do I run a Spring @Scheduled job every month?

Use @Scheduled(cron = "0 0 0 1 * *"). Spring cron has six fields, starting with seconds. Add zone = "Europe/London" (or any IANA zone) to run it in a specific time zone instead of the server's.

What is the Quartz cron expression for every month?

0 0 0 1 * ?. Quartz adds a seconds field at the start and requires ? in either the day-of-month or day-of-week field.

How do I write every month for AWS EventBridge?

Use cron(0 0 1 * ? *). EventBridge cron has six fields including a year, and one of the two day fields must be ?. Classic EventBridge rules run in UTC; EventBridge Scheduler accepts a time zone.

Which time zone does this cron schedule use?

Cron runs in the time zone of the scheduler: the server's local zone for crontab, UTC for GitHub Actions and EventBridge rules, or the zone you set with CRON_TZ, Kubernetes timeZone, Spring zone or Quartz inTimeZone. Choose a zone in the tester above to see local run times.

More cron schedules

Similar: Last Day of the Month (0 0 23 L * ?) · Every Quarter (0 0 1 1,4,7,10 *) · First Monday of the Month (0 0 9 ? * 2#1)