Cron expression for once a month

0 0 1 * *

At 00:00, on the 1st of the month.

Day-of-month 1 runs the job on the first of every month at 00:00, the same as @monthly.

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 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 * *
Quartz0 0 0 1 * ?
Spring @Scheduled0 0 0 1 * ?
AWS EventBridgecron(0 0 1 * ? *)

Variations

@monthlyMacro form
0 0 L * ?Last day of the month (Quartz/AWS only)
0 0 28-31 * *Unix workaround: run on 28–31 and check for the last day in the script

In other schedulers

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

Questions

What is the cron expression for every month (first day)?
0 0 1 * *. At 00:00, on the 1st 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 * ?. In Spring: @Scheduled(cron = "0 0 0 1 * ?").
What is the AWS EventBridge version?
cron(0 0 1 * ? *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
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.